diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-24 00:16:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 22:26:49 +0100 |
commit | 3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a (patch) | |
tree | 773c8edb1b3a5491e17b8318f560ece48751040e | |
parent | net: netrom: Add missing annotation for nr_neigh_stop() (diff) | |
download | linux-3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a.tar.xz linux-3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a.zip |
dccp: Add missing annotation for dccp_child_process()
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>
-rw-r--r-- | net/dccp/minisocks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c index 25187528c308..c5c74a34d139 100644 --- a/net/dccp/minisocks.c +++ b/net/dccp/minisocks.c @@ -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; |