aboutsummaryrefslogtreecommitdiffstats
path: root/net/dcb
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-07-07 17:27:24 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-08 12:01:14 -0400
commit40f5d72a4fc098c47068e3888cfb055922f6519f (patch)
tree653673398a56a0fda77586e75b21cbc0fc626ba4 /net/dcb
parent560040b8400bbc9074ff23afb28891378482ee52 (diff)
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: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb')
-rw-r--r--net/dcb/dcbnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c
index 6a015f211fee..3cb56af4e13c 100644
--- a/net/dcb/dcbnl.c
+++ b/net/dcb/dcbnl.c
@@ -1409,7 +1409,7 @@ static int dcbnl_cee_fill(struct sk_buff *skb, struct net_device *netdev)
1409 spin_lock(&dcb_lock); 1409 spin_lock(&dcb_lock);
1410 app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE); 1410 app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE);
1411 if (!app) 1411 if (!app)
1412 goto nla_put_failure; 1412 goto dcb_unlock;
1413 1413
1414 list_for_each_entry(itr, &dcb_app_list, list) { 1414 list_for_each_entry(itr, &dcb_app_list, list) {
1415 if (strncmp(itr->name, netdev->name, IFNAMSIZ) == 0) { 1415 if (strncmp(itr->name, netdev->name, IFNAMSIZ) == 0) {