[PATCH RFC 23/25] net: Move genl_pernet_ops to pernet_sys list

From: Kirill Tkhai
Date: Fri Nov 17 2017 - 13:31:18 EST


This pernet_operations create and destroy net::genl_sock.
Foreign pernet_operations don't touch it.

Signed-off-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>
---
net/netlink/genetlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index d444daf1ac04..da7ab3dd5609 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -1045,7 +1045,7 @@ static int __init genl_init(void)
if (err < 0)
goto problem;

- err = register_pernet_subsys(&genl_pernet_ops);
+ err = register_pernet_sys(&genl_pernet_ops);
if (err)
goto problem;