summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJules Irenge <jbi.octave@gmail.com>2020-02-24 00:16:55 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-24 22:26:49 +0100
commit3283ff2ea7ffd02decb1a813b97d4bbcdbb4e66a (patch)
tree773c8edb1b3a5491e17b8318f560ece48751040e
parentnet: netrom: Add missing annotation for nr_neigh_stop() (diff)
downloadlinux-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.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;