net: use DEBUG_NET_WARN_ON_ONCE() in __release_sock()
authorEric Dumazet <edumazet@google.com>
Wed, 8 Jun 2022 16:04:31 +0000 (09:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 04:53:54 +0000 (21:53 -0700)
commit63fbdd3c77ec216a91a87d22821d2ecd96669a5d
treed7dd67249ace86374b0ad849370aaa194a6b96e3
parentf5f37fc9c4d509bfbd914fbc966100053572e5f0
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>
net/core/sock.c