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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 10:47:38 +0000 (12:47 +0200)
commitb860f35e1cb74de5b15a67c901310ccb034d1452
treebffe7115e927357a33cf0c289e6075434c1a6041
parent6bcef69aed2362940365c077c9a491280c1c3a83
net: don't warn in inet diag when IPV6 is disabled

[ Upstream commit 1e64d7cbfdce4887008314d5b367209582223f27 ]

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: 432490f9d455 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/raw_diag.c