diff --git a/net/core/netdev-genl.c b/net/core/netdev-genl.c index 3c3adf7e75f1..4b55fb87e865 100644 --- a/net/core/netdev-genl.c +++ b/net/core/netdev-genl.c @@ -213,6 +213,7 @@ int netdev_nl_napi_get_doit(struct sk_buff *skb, struct genl_info *info) return -ENOMEM; rtnl_lock(); + rcu_read_lock(); napi = napi_by_id(napi_id); if (napi) { @@ -222,6 +223,7 @@ int netdev_nl_napi_get_doit(struct sk_buff *skb, struct genl_info *info) err = -ENOENT; } + rcu_read_unlock(); rtnl_unlock(); if (err)