提交 747cf6ed 编写于 作者: D Dan Carpenter 提交者: 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: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NAlexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c3deafc5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册