6lowpan: double unlock on an error path
Subsystems (4)
PATCH 1/1 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').
net/ieee802154/6lowpan.c +1 -1
@@ -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 ; }
2012/6/27 Dan Carpenter <[email protected]>:
Quoted 11 lines
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]>net/ieee802154/6lowpan.c +0
-0
net/ieee802154/6lowpan.c lowpan_process_data(struct sk_buff *skb) · line 777
Quoted 8 lines
net/ieee802154/6lowpan.c +1
-1@@ -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 kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
David Miller
maintainerFrom: Alexander Smirnov <[email protected]>
Date: Wed, 27 Jun 2012 10:57:18 +0400
Quoted 6 lines
2012/6/27 Dan Carpenter <[email protected]>:
Quoted 5 lines
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]>
...
Quoted 1 line
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html