diff options
author | Jules Irenge <jbi.octave@gmail.com> | 2020-02-23 23:16:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 13:26:49 -0800 |
commit | 3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a (patch) | |
tree | 773c8edb1b3a5491e17b8318f560ece48751040e /net/dccp/minisocks.c | |
parent | be21139f3539350b33112e88183992e1ee086f53 (diff) |
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>
Diffstat (limited to 'net/dccp/minisocks.c')
-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; |