aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index ef75b6270247..b5c9795cf151 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -1543,7 +1543,8 @@ static int accept(struct socket *sock, struct socket *new_sock, int flags)
1543 u32 new_ref = new_tport->ref; 1543 u32 new_ref = new_tport->ref;
1544 struct tipc_msg *msg = buf_msg(buf); 1544 struct tipc_msg *msg = buf_msg(buf);
1545 1545
1546 lock_sock(new_sk); 1546 /* we lock on new_sk; but lockdep sees the lock on sk */
1547 lock_sock_nested(new_sk, SINGLE_DEPTH_NESTING);
1547 1548
1548 /* 1549 /*
1549 * Reject any stray messages received by new socket 1550 * Reject any stray messages received by new socket