summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-08-15 16:34:43 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-16 02:20:55 +0200
commite3a22b7f5cfb3b422669fbf3d668315ac7634e5a (patch)
treecec1fcbfa73e7d4a5f7ca6e521d34bba3b49a311 /net/ipv6
parentipv6: route: make rtm_getroute not assume rtnl is locked (diff)
downloadlinux-e3a22b7f5cfb3b422669fbf3d668315ac7634e5a.tar.xz
linux-e3a22b7f5cfb3b422669fbf3d668315ac7634e5a.zip
ipv6: route: set ipv6 RTM_GETROUTE to not use rtnl
Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 60705b4d2c62..11ff19ba7efd 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -4107,7 +4107,8 @@ int __init ip6_route_init(void)
ret = -ENOBUFS;
if (__rtnl_register(PF_INET6, RTM_NEWROUTE, inet6_rtm_newroute, NULL, 0) ||
__rtnl_register(PF_INET6, RTM_DELROUTE, inet6_rtm_delroute, NULL, 0) ||
- __rtnl_register(PF_INET6, RTM_GETROUTE, inet6_rtm_getroute, NULL, 0))
+ __rtnl_register(PF_INET6, RTM_GETROUTE, inet6_rtm_getroute, NULL,
+ RTNL_FLAG_DOIT_UNLOCKED))
goto out_register_late_subsys;
ret = register_netdevice_notifier(&ip6_route_dev_notifier);