projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5f37fc
)
net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()
author
Eric Dumazet
<edumazet@google.com>
Wed, 8 Jun 2022 16:04:31 +0000
(09:04 -0700)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 10 Jun 2022 04:53:54 +0000
(21:53 -0700)
Check against skb dst in socket backlog has never triggered
in past years.
Keep the check omly for CONFIG_DEBUG_NET=y builds.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/sock.c
patch
|
blob
|
history
diff --git
a/net/core/sock.c
b/net/core/sock.c
index
2ff40dd
..
f5062d9
100644
(file)
--- a/
net/core/sock.c
+++ b/
net/core/sock.c
@@
-2844,7
+2844,7
@@
void __release_sock(struct sock *sk)
do {
next = skb->next;
prefetch(next);
- WARN_ON_ONCE(skb_dst_is_noref(skb));
+
DEBUG_NET_
WARN_ON_ONCE(skb_dst_is_noref(skb));
skb_mark_not_on_list(skb);
sk_backlog_rcv(sk, skb);