Skip to content

Commit b8fd082

Browse files
Andrii Vladykadavem330
authored andcommitted
net: core: fix module type in sock_diag_bind
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>
1 parent ef7f8ce commit b8fd082

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/core/sock_diag.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ static int sock_diag_bind(struct net *net, int group)
288288
case SKNLGRP_INET6_UDP_DESTROY:
289289
if (!sock_diag_handlers[AF_INET6])
290290
request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
291-
NETLINK_SOCK_DIAG, AF_INET);
291+
NETLINK_SOCK_DIAG, AF_INET6);
292292
break;
293293
}
294294
return 0;

0 commit comments

Comments
 (0)