Files
linux/net/tipc
Xin Long 7387a72c5f tipc: call tipc_wait_for_connect only when dlen is not 0
__tipc_sendmsg() is called to send SYN packet by either tipc_sendmsg()
or tipc_connect(). The difference is in tipc_connect(), it will call
tipc_wait_for_connect() after __tipc_sendmsg() to wait until connecting
is done. So there's no need to wait in __tipc_sendmsg() for this case.

This patch is to fix it by calling tipc_wait_for_connect() only when dlen
is not 0 in __tipc_sendmsg(), which means it's called by tipc_connect().

Note this also fixes the failure in tipcutils/test/ptts/:

  # ./tipcTS &
  # ./tipcTC 9
  (hang)

Fixes: 36239dab6da7 ("tipc: fix implicit-connect for SYN+")
Reported-by: Shuang Li <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Acked-by: Jon Maloy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2021-08-16 11:20:56 +01:00
..
2021-06-28 13:31:57 -07:00
…
2021-05-18 13:22:09 -07:00
2021-05-18 13:22:09 -07:00
…
…
2021-05-18 13:22:09 -07:00
…
…
2021-06-28 13:31:57 -07:00
2021-05-18 13:22:09 -07:00
…
…
…
…
2021-06-10 13:48:43 -07:00
2021-03-29 16:28:50 -07:00
…
…
…