diff options
author | Dan Carpenter <error27@gmail.com> | 2011-07-07 23:27:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-08 18:01:14 +0200 |
commit | 40f5d72a4fc098c47068e3888cfb055922f6519f (patch) | |
tree | 653673398a56a0fda77586e75b21cbc0fc626ba4 /net/dcb/dcbnl.c | |
parent | skge/sky2: change config references to Marvell (diff) | |
download | linux-40f5d72a4fc098c47068e3888cfb055922f6519f.tar.xz linux-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.c | 2 |
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) { |