net: use WARN_ON_ONCE() in inet_sock_destruct()
authorEric Dumazet <edumazet@google.com>
Wed, 8 Jun 2022 16:04:33 +0000 (09:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 04:53:55 +0000 (21:53 -0700)
commit3e7f2b8d30883f27ab1157bf3f23f30f1a07bf69
treeb290103ba38cc1c3fa889d70700840388a0dd79f
parent76458faeb285b1536abc3e75ea318564543269c3
net: use WARN_ON_ONCE() in inet_sock_destruct()

inet_sock_destruct() has four warnings which have been
useful to point to kernel bugs in the past.

However they are potentially a problem because they
could flood the syslog.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/af_inet.c