net: Use lockdep_assert_in_softirq() in napi_consume_skb()
Use napi_consume_skb() to assert the case when it is not called in a atomic softirq context. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8b5536ad12
commit
6454eca81e
@ -902,6 +902,8 @@ void napi_consume_skb(struct sk_buff *skb, int budget)
|
||||
return;
|
||||
}
|
||||
|
||||
lockdep_assert_in_softirq();
|
||||
|
||||
if (!skb_unref(skb))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user