Skip to contentSkip to conversation

dccp: Add missing annotation for dccp_child_process()

PATCH Applied Jules Irenge 2 participants 2 messages Feb 23, 2020 – Feb 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 net/dccp/minisocks.c | 1 +
 1 file changed, 1 insertion(+)
net/dccp/minisocks.c +1 -0
index 25187528c308..c5c74a34d139 100644
@@ -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
maintainer Applied
#1 lore raw

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 in dccp_child_process() - unexpected unlock The root cause is the missing annotation at dccp_child_process() Add the missing __releases(child) annotation

Applied.