Skip to content

Commit 3283ff2

Browse files
irengedavem330
authored andcommitted
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]> Signed-off-by: David S. Miller <[email protected]>
1 parent be21139 commit 3283ff2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/dccp/minisocks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ EXPORT_SYMBOL_GPL(dccp_check_req);
216216
*/
217217
int dccp_child_process(struct sock *parent, struct sock *child,
218218
struct sk_buff *skb)
219+
__releases(child)
219220
{
220221
int ret = 0;
221222
const int state = child->sk_state;

0 commit comments

Comments
 (0)