dccp: Add missing annotation for dccp_child_process()
authorJules Irenge <jbi.octave@gmail.com>
Sun, 23 Feb 2020 23:16:55 +0000 (23:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 21:26:49 +0000 (13:26 -0800)
Sparse reports a warning at dccp_child_process()
warning: context imbalance in dccp_child_process() - unexpected unlock
The root cause is the missing annotation at dccp_child_process()
Add the missing __releases(child) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/minisocks.c

index 2518752..c5c74a3 100644 (file)
@@ -216,6 +216,7 @@ EXPORT_SYMBOL_GPL(dccp_check_req);
  */
 int dccp_child_process(struct sock *parent, struct sock *child,
                       struct sk_buff *skb)
+       __releases(child)
 {
        int ret = 0;
        const int state = child->sk_state;