Netdev List
 help / color / mirror / Atom feed
* [PATCH] net: core: fix module type in sock_diag_bind
@ 2018-01-04 11:09 Andrii Vladyka
  0 siblings, 0 replies; only message in thread
From: Andrii Vladyka @ 2018-01-04 11:09 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-kernel

Use AF_INET6 instead of AF_INET in IPv6-related code path

Signed-off-by: Andrii Vladyka <tulup@mail.ru>
---
 net/core/sock_diag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c
index 217f4e3..146b50e 100644
--- a/net/core/sock_diag.c
+++ b/net/core/sock_diag.c
@@ -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;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-04 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04 11:09 [PATCH] net: core: fix module type in sock_diag_bind Andrii Vladyka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox