Commit 747cf6ed authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

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
c5d3687f ('6lowpan: read data from skb safely').
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarAlexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c3deafc5
...@@ -771,7 +771,7 @@ lowpan_process_data(struct sk_buff *skb) ...@@ -771,7 +771,7 @@ lowpan_process_data(struct sk_buff *skb)
kfree(frame); kfree(frame);
if (lowpan_fetch_skb_u8(skb, &iphc0)) if (lowpan_fetch_skb_u8(skb, &iphc0))
goto unlock_and_drop; goto drop;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment