]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d6c8eb15543b833879e77ddc894dcd9e93839af
treed7dd67249ace86374b0ad849370aaa194a6b96e3
parent6bb92e06e060e736e2b850159fc1ca8167e5ae10
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