mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-19 21:44:08 +00:00
netvsc: fix RCU warning in get_stats
The statistics functionis called with RTNL held during probe but with RCU held during access from /proc and elsewhere. This is safe so update the lockdep annotation. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1dbba4cb8d
commit
776e726bfb
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ static void netvsc_get_stats64(struct net_device *net,
|
||||||
struct rtnl_link_stats64 *t)
|
struct rtnl_link_stats64 *t)
|
||||||
{
|
{
|
||||||
struct net_device_context *ndev_ctx = netdev_priv(net);
|
struct net_device_context *ndev_ctx = netdev_priv(net);
|
||||||
struct netvsc_device *nvdev = rcu_dereference(ndev_ctx->nvdev);
|
struct netvsc_device *nvdev = rcu_dereference_rtnl(ndev_ctx->nvdev);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!nvdev)
|
if (!nvdev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue