projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd29c67
)
net: use DEBUG_NET_WARN_ON_ONCE() in skb_release_head_state()
author
Eric Dumazet
<edumazet@google.com>
Wed, 8 Jun 2022 16:04:36 +0000
(09:04 -0700)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 10 Jun 2022 04:53:56 +0000
(21:53 -0700)
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>
net/core/skbuff.c
patch
|
blob
|
history
diff --git
a/net/core/skbuff.c
b/net/core/skbuff.c
index b661040c100efbb59aea58ed31247f820292bd64..cf83d9b8f41dc28ae11391f2651e5abee3dcde8f 100644
(file)
--- 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)