Commit d19b5ed4 authored by Andrii Vladyka's avatar Andrii Vladyka Committed by Greg Kroah-Hartman

net: core: fix module type in sock_diag_bind


[ Upstream commit b8fd0823 ]

Use AF_INET6 instead of AF_INET in IPv6-related code path
Signed-off-by: default avatarAndrii Vladyka <tulup@mail.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9f16497
...@@ -289,7 +289,7 @@ static int sock_diag_bind(struct net *net, int group) ...@@ -289,7 +289,7 @@ static int sock_diag_bind(struct net *net, int group)
case SKNLGRP_INET6_UDP_DESTROY: case SKNLGRP_INET6_UDP_DESTROY:
if (!sock_diag_handlers[AF_INET6]) if (!sock_diag_handlers[AF_INET6])
request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK, request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
NETLINK_SOCK_DIAG, AF_INET); NETLINK_SOCK_DIAG, AF_INET6);
break; break;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment