]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 16 Oct 2019 09:55:16 +0000 (11:55 +0200)
commitf42132dfe5c384bc0948d2756db3caf264431c5d
treecd22302795cc37bfc455c5a2dfdf84cceb7c7540
parente0c7d3024300a5e98690a3f44851706d2b299a04
net: don't warn in inet diag when IPV6 is disabled

BugLink: https://bugs.launchpad.net/bugs/1847155
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/ipv4/raw_diag.c