Skip to contentSkip to conversation

fou: avoid missing unlock in failure path

PATCH Applied Cong Wang 2 participants 2 messages Apr 15, 2015 – Apr 16, 2015

Subsystems (2)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH v2 1/1 fou: avoid missing unlock in failure path

Fixes 7a6c8c34e5b7 ("fou: implement FOU_CMD_GET")
Cc Dan Carpenter <[email protected]>
---
 net/ipv4/fou.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
net/ipv4/fou.c +1 -2
index af150b4..34968cd 100644
@@ -711,11 +711,10 @@ static int fou_nl_dump(struct sk_buff *skb, struct netlink_callback *cb)
 				    cb->nlh->nlmsg_seq, NLM_F_MULTI,
 				    skb, FOU_CMD_GET);
 		if (ret)
-			goto done;
+			break;
 	}
 	mutex_unlock(&fn->fou_lock);
 
-done:
 	cb->args[0] = idx;
 	return skb->len;
 }
Signature · 1 line
1.8.3.1