summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2022-06-08 19:04:31 +0300
committerJakub Kicinski <kuba@kernel.org>2022-06-10 07:53:54 +0300
commit63fbdd3c77ec216a91a87d22821d2ecd96669a5d (patch)
treed7dd67249ace86374b0ad849370aaa194a6b96e3 /net
parentf5f37fc9c4d509bfbd914fbc966100053572e5f0 (diff)
downloadlinux-63fbdd3c77ec216a91a87d22821d2ecd96669a5d.tar.xz
net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()
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>
Diffstat (limited to 'net')
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 2ff40dd0a7a6..f5062d9e1222 100644
--- 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);