dccp: Add missing annotation for dccp_child_process()
Subsystems (2)
PATCH 14/30 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 <[email protected]>
--- net/dccp/minisocks.c | 1 + 1 file changed, 1 insertion(+)
net/dccp/minisocks.c +1 -0
@@ -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;
Signature · 1 line
2.24.1
From: Jules Irenge <[email protected]>
Date: Sun, 23 Feb 2020 23:16:55 +0000
Quoted 6 lines
Sparse reports a warning at
dccp_child_process()
warning: context imbalance indccp_child_process()- unexpected unlock The root cause is the missing annotation atdccp_child_process()Add the missing__releases(child)annotationSigned-off-by Jules Irenge <[email protected]>
Applied.