projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560040b
)
dcbnl: unlock on an error path in dcbnl_cee_fill()
author
Dan Carpenter
<error27@gmail.com>
Thu, 7 Jul 2011 21:27:24 +0000
(21:27 +0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 8 Jul 2011 16:01:14 +0000
(09:01 -0700)
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>
net/dcb/dcbnl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/dcb/dcbnl.c
b/net/dcb/dcbnl.c
index 6a015f211fee3b2464ff6c40c305396e38adaf87..3cb56af4e13c9945927f67d854c2f82467d8259a 100644
(file)
--- 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) {