diff options
author | Eric Dumazet <edumazet@google.com> | 2022-06-08 09:04:36 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-06-09 21:53:56 -0700 |
commit | 7890e2f09d437f79e67cd37bf3e820fa0cddf2be (patch) | |
tree | a52acb638e4a7e6fe0e3a0b3d38c838a584d77b0 /net/core | |
parent | dd29c67dbbbf97c8aa786a502977856d8eb9a73d (diff) | |
download | linux-7890e2f09d437f79e67cd37bf3e820fa0cddf2be.tar.gz |
net: use DEBUG_NET_WARN_ON_ONCE() in skb_release_head_state()
Remove this check from fast path unless CONFIG_DEBUG_NET=y
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/skbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index b661040c100e..cf83d9b8f41d 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -728,7 +728,7 @@ void skb_release_head_state(struct sk_buff *skb) { skb_dst_drop(skb); if (skb->destructor) { - WARN_ON(in_hardirq()); + DEBUG_NET_WARN_ON_ONCE(in_hardirq()); skb->destructor(skb); } #if IS_ENABLED(CONFIG_NF_CONNTRACK) |