OSDN Git Service

tcp: Add missing annotation for tcp_child_process()
authorJules Irenge <jbi.octave@gmail.com>
Wed, 11 Mar 2020 01:09:03 +0000 (01:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 06:19:41 +0000 (23:19 -0700)
commit734c8f75743983842736e6a99ec6be152b2b7f50
tree7ac4f433d18d0c6b8453a23596d2934faeca0bd9
parent0d8a42c93a7af05911e94bc3ec1c0d57d948d583
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>
net/ipv4/tcp_minisocks.c