diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2018-07-27 22:43:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-29 21:57:26 +0200 |
commit | 3260155ac784ae9f4889c6d3e40b85f33e94d098 (patch) | |
tree | 648292baa821322d4db544de9fa9ddd1037b394e /drivers/net/net_failover.c | |
parent | net: dcb: add DSCP to comment about priority selector types (diff) | |
download | linux-3260155ac784ae9f4889c6d3e40b85f33e94d098.tar.xz linux-3260155ac784ae9f4889c6d3e40b85f33e94d098.zip |
failover: change mtu has RTNL
When changing MTU, RTNL is held so use rtnl_dereference
instead of rcu_dereference.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/net_failover.c')
-rw-r--r-- | drivers/net/net_failover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/net_failover.c b/drivers/net/net_failover.c index d00d42c845b7..7ae1856d1f18 100644 --- a/drivers/net/net_failover.c +++ b/drivers/net/net_failover.c @@ -220,14 +220,14 @@ static int net_failover_change_mtu(struct net_device *dev, int new_mtu) struct net_device *primary_dev, *standby_dev; int ret = 0; - primary_dev = rcu_dereference(nfo_info->primary_dev); + primary_dev = rtnl_dereference(nfo_info->primary_dev); if (primary_dev) { ret = dev_set_mtu(primary_dev, new_mtu); if (ret) return ret; } - standby_dev = rcu_dereference(nfo_info->standby_dev); + standby_dev = rtnl_dereference(nfo_info->standby_dev); if (standby_dev) { ret = dev_set_mtu(standby_dev, new_mtu); if (ret) { |