Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 394f51ab authored by Florian Westphal's avatar Florian Westphal Committed by David S. Miller
Browse files

ipv4: route: set ipv4 RTM_GETROUTE to not use rtnl

parent e3a22b7f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3073,7 +3073,8 @@ int __init ip_rt_init(void)
	xfrm_init();
	xfrm4_init();
#endif
	rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL, 0);
	rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL,
		      RTNL_FLAG_DOIT_UNLOCKED);

#ifdef CONFIG_SYSCTL
	register_pernet_subsys(&sysctl_route_ops);