From: Dan Carpenter Date: Thu, 7 Jul 2011 21:27:24 +0000 (+0000) Subject: dcbnl: unlock on an error path in dcbnl_cee_fill() X-Git-Tag: next-20110726~165^2~193 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=40f5d72a4fc098c47068e3888cfb055922f6519f;p=karo-tx-linux.git 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 Signed-off-by: David S. Miller --- 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) {