Commit 40f5d72a authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

dcbnl: unlock on an error path in dcbnl_cee_fill()

We need to release "dcb_lock" which we took on the previous line.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 560040b8
...@@ -1409,7 +1409,7 @@ static int dcbnl_cee_fill(struct sk_buff *skb, struct net_device *netdev) ...@@ -1409,7 +1409,7 @@ static int dcbnl_cee_fill(struct sk_buff *skb, struct net_device *netdev)
spin_lock(&dcb_lock); spin_lock(&dcb_lock);
app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE); app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE);
if (!app) if (!app)
goto nla_put_failure; goto dcb_unlock;
list_for_each_entry(itr, &dcb_app_list, list) { list_for_each_entry(itr, &dcb_app_list, list) {
if (strncmp(itr->name, netdev->name, IFNAMSIZ) == 0) { if (strncmp(itr->name, netdev->name, IFNAMSIZ) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment