aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-06-08 09:04:36 -0700
committerJakub Kicinski <kuba@kernel.org>2022-06-09 21:53:56 -0700
commit7890e2f09d437f79e67cd37bf3e820fa0cddf2be (patch)
treea52acb638e4a7e6fe0e3a0b3d38c838a584d77b0 /net/core/skbuff.c
parentaf_unix: use DEBUG_NET_WARN_ON_ONCE() (diff)
downloadlinux-dev-7890e2f09d437f79e67cd37bf3e820fa0cddf2be.tar.xz
linux-dev-7890e2f09d437f79e67cd37bf3e820fa0cddf2be.zip
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/skbuff.c')
-rw-r--r--net/core/skbuff.c2
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)