summaryrefslogtreecommitdiffstats
path: root/net/dcb/dcbnl.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-07-07 21:27:24 +0000
committerDavid S. Miller <davem@davemloft.net>2011-07-08 09:01:14 -0700
commit40f5d72a4fc098c47068e3888cfb055922f6519f (patch)
tree653673398a56a0fda77586e75b21cbc0fc626ba4 /net/dcb/dcbnl.c
parent560040b8400bbc9074ff23afb28891378482ee52 (diff)
downloadlinux-stable-40f5d72a4fc098c47068e3888cfb055922f6519f.tar.gz
linux-stable-40f5d72a4fc098c47068e3888cfb055922f6519f.tar.bz2
linux-stable-40f5d72a4fc098c47068e3888cfb055922f6519f.zip
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/dcbnl.c')
-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)
spin_lock(&dcb_lock);
app = nla_nest_start(skb, DCB_ATTR_CEE_APP_TABLE);
if (!app)
- goto nla_put_failure;
+ goto dcb_unlock;
list_for_each_entry(itr, &dcb_app_list, list) {
if (strncmp(itr->name, netdev->name, IFNAMSIZ) == 0) {