From: Yunsheng Lin Date: Tue, 24 Nov 2020 10:49:29 +0000 (+0800) Subject: net: Use lockdep_assert_in_softirq() in napi_consume_skb() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6454eca81eae;p=linux.git 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 Signed-off-by: Jakub Kicinski --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index ffe3dcc0ebea7..effa19da8681e 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -902,6 +902,8 @@ void napi_consume_skb(struct sk_buff *skb, int budget) return; } + lockdep_assert_in_softirq(); + if (!skb_unref(skb)) return;