Skip to content

Commit

Permalink
net: core: fix module type in sock_diag_bind
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrii Vladyka authored and David S. Miller committed Jan 9, 2018
1 parent ef7f8ce commit b8fd082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/sock_diag.c
Original file line number Diff line number Diff line change
@@ -288,7 +288,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;

0 comments on commit b8fd082

Please sign in to comment.