Browse Source

tipc: remove redundant call to tipc_node_remove_conn

tipc_node_remove_conn may be called twice if shutdown() is
called on a socket that have messages in the receive queue.
Calling this function twice does no harm, but is unnecessary
and we remove the redundant call.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Erik Hugne 10 năm trước cách đây
mục cha
commit
18d6c58415
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      net/tipc/socket.c

+ 0 - 1
net/tipc/socket.c

@@ -2078,7 +2078,6 @@ restart:
 					     TIPC_CONN_SHUTDOWN))
 					     TIPC_CONN_SHUTDOWN))
 				tipc_link_xmit_skb(net, skb, dnode,
 				tipc_link_xmit_skb(net, skb, dnode,
 						   tsk->portid);
 						   tsk->portid);
-			tipc_node_remove_conn(net, dnode, tsk->portid);
 		} else {
 		} else {
 			dnode = tsk_peer_node(tsk);
 			dnode = tsk_peer_node(tsk);