diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-26 16:53:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-27 04:16:45 -0400 |
commit | 747cf6ed3dbf6200af761f5384893c3b621a484c (patch) | |
tree | 56eac2292838ddbfa2cbf302b51ff9590c51553b /net/ieee802154/6lowpan.c | |
parent | c3deafc5261a9421b315ee0d0e8e36ba7857128c (diff) |
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@oracle.com>
Acked-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/6lowpan.c')
-rw-r--r-- | net/ieee802154/6lowpan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index ad0c2264e537..cd5007f3a569 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c | |||
@@ -771,7 +771,7 @@ lowpan_process_data(struct sk_buff *skb) | |||
771 | kfree(frame); | 771 | kfree(frame); |
772 | 772 | ||
773 | if (lowpan_fetch_skb_u8(skb, &iphc0)) | 773 | if (lowpan_fetch_skb_u8(skb, &iphc0)) |
774 | goto unlock_and_drop; | 774 | goto drop; |
775 | 775 | ||
776 | break; | 776 | break; |
777 | } | 777 | } |