summaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-23 23:16:55 +0000
committerDavid S. Miller <davem@davemloft.net>2020-02-24 13:26:49 -0800
commit3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a (patch)
tree773c8edb1b3a5491e17b8318f560ece48751040e /net/dccp
parentbe21139f3539350b33112e88183992e1ee086f53 (diff)
downloadlinux-stable-3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a.tar.gz
linux-stable-3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a.tar.bz2
linux-stable-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>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/minisocks.c1
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;