Skip to content

Commit

Permalink
6lowpan: double unlock on an error path
Browse files Browse the repository at this point in the history
We already unlocked a few lines earlier here, so we can go directly to
drop without passing through unlock.  This was introduced recently in
c5d3687 ('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]>
  • Loading branch information
Dan Carpenter authored and davem330 committed Jun 27, 2012
1 parent c3deafc commit 747cf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 747cf6e

Please sign in to comment.