[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120627065309.GA25774@elgon.mountain>
Date: Wed, 27 Jun 2012 09:53:09 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Dmitry Eremin-Solenikov <dbaryshkov@...il.com>
Cc: Sergey Lapin <slapin@...fans.org>,
"David S. Miller" <davem@...emloft.net>,
linux-zigbee-devel@...ts.sourceforge.net, netdev@...r.kernel.org,
alex.bluesman.smirnov@...il.com, kernel-janitors@...r.kernel.org
Subject: [patch -next] 6lowpan: double unlock on an error path
We already unlocked a few lines earlier here, so we can go directly to
drop without passing through unlock. This was introduced recently in
c5d3687f6c ('6lowpan: read data from skb safely').
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index ad0c226..cd5007f 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -771,7 +771,7 @@ lowpan_process_data(struct sk_buff *skb)
kfree(frame);
if (lowpan_fetch_skb_u8(skb, &iphc0))
- goto unlock_and_drop;
+ goto drop;
break;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists