Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jules Irenge and committed by
David S. Miller
3283ff2e be21139f

+1
+1
net/dccp/minisocks.c
··· 216 216 */ 217 217 int dccp_child_process(struct sock *parent, struct sock *child, 218 218 struct sk_buff *skb) 219 + __releases(child) 219 220 { 220 221 int ret = 0; 221 222 const int state = child->sk_state;