diff options
author | Andrii Vladyka <tulup@mail.ru> | 2018-01-04 13:09:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-17 09:38:53 +0100 |
commit | 61196a67cac4faa27d5e8f765b468bc25822f84d (patch) | |
tree | aa48331988f9a28a5edd8359e65de06ce84af762 | |
parent | ca5681b723d39e85cbb2f05523a08ef2ee3a8086 (diff) | |
download | linux-stable-61196a67cac4faa27d5e8f765b468bc25822f84d.tar.gz linux-stable-61196a67cac4faa27d5e8f765b468bc25822f84d.tar.bz2 linux-stable-61196a67cac4faa27d5e8f765b468bc25822f84d.zip |
net: core: fix module type in sock_diag_bind
[ Upstream commit b8fd0823e0770c2d5fdbd865bccf0d5e058e5287 ]
Use AF_INET6 instead of AF_INET in IPv6-related code path
Signed-off-by: Andrii Vladyka <tulup@mail.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/core/sock_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c index 6b10573cc9fa..d1d9faf3046b 100644 --- a/net/core/sock_diag.c +++ b/net/core/sock_diag.c @@ -295,7 +295,7 @@ static int sock_diag_bind(struct net *net, int group) case SKNLGRP_INET6_UDP_DESTROY: if (!sock_diag_handlers[AF_INET6]) request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK, - NETLINK_SOCK_DIAG, AF_INET); + NETLINK_SOCK_DIAG, AF_INET6); break; } return 0; |