]> git.baikalelectronics.ru Git - kernel.git/commit
net: don't warn in inet diag when IPV6 is disabled
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 2 Jul 2019 22:20:21 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jul 2019 18:26:35 +0000 (11:26 -0700)
commitc0cd24c7cc5788b833f762bf34e1e1fc0c911ae4
treef0b6a27f2cce0f56b78093555e65bb472097e3fb
parent56d2594d4279d6b699f1d248e004c75389d31052
net: don't warn in inet diag when IPV6 is disabled

If IPV6 was disabled, then ss command would cause a kernel warning
because the command was attempting to dump IPV6 socket information.
The fix is to just remove the warning.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202249
Fixes: 8cfa89549432 ("net: ip, diag -- Add diag interface for raw sockets")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/raw_diag.c