6lowpan: double unlock on an error path
authorDan Carpenter <[email protected]>
Tue, 26 Jun 2012 20:53:09 +0000 (20:53 +0000)
committerDavid S. Miller <[email protected]>
Wed, 27 Jun 2012 08:16:45 +0000 (01:16 -0700)
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 <[email protected]>
Acked-by: Alexander Smirnov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ieee802154/6lowpan.c

index ad0c2264e537724e12c92c44f8f023d0a88e6825..cd5007f3a5695cf5290827fa777dbd9d6704efc6 100644 (file)
@@ -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;
                }