Skip to content

Commit

Permalink
dccp: Add missing annotation for dccp_child_process()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
irenge authored and davem330 committed Feb 24, 2020
1 parent be21139 commit 3283ff2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/dccp/minisocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3283ff2

Please sign in to comment.