From: Jules Irenge Date: Wed, 11 Mar 2020 01:09:03 +0000 (+0000) Subject: tcp: Add missing annotation for tcp_child_process() X-Git-Tag: block-5.7-2020-04-09~9^2~193 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=734c8f75743983842736e6a99ec6be152b2b7f50;p=linux-2.6-block.git tcp: Add missing annotation for tcp_child_process() Sparse reports warning at tcp_child_process() warning: context imbalance in tcp_child_process() - unexpected unlock The root cause is the missing annotation at tcp_child_process() Add the missing __releases(&((child)->sk_lock.slock)) annotation Signed-off-by: Jules Irenge Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c index c8274371c3d0..03af7c3e75ef 100644 --- a/net/ipv4/tcp_minisocks.c +++ b/net/ipv4/tcp_minisocks.c @@ -819,6 +819,7 @@ EXPORT_SYMBOL(tcp_check_req); int tcp_child_process(struct sock *parent, struct sock *child, struct sk_buff *skb) + __releases(&((child)->sk_lock.slock)) { int ret = 0; int state = child->sk_state;