diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-03-11 04:09:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 09:19:41 +0300 |
commit | 734c8f75743983842736e6a99ec6be152b2b7f50 (patch) | |
tree | 7ac4f433d18d0c6b8453a23596d2934faeca0bd9 /net/ipv4 | |
parent | 0d8a42c93a7af05911e94bc3ec1c0d57d948d583 (diff) | |
download | linux-734c8f75743983842736e6a99ec6be152b2b7f50.tar.xz |
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 <jbi.octave@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_minisocks.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |