diff options
author | Eric Dumazet | 2024-02-09 15:30:57 +0000 |
---|---|---|
committer | David S. Miller | 2024-02-12 12:17:02 +0000 |
commit | 4cd582ffa5a9a5d58e5bac9c5e55ca8eeabffddc (patch) | |
tree | 7356dc577e921e243c025ef6a9eae762d5a2016e /net | |
parent | 17ef8efc00b34918b966388b2af0993811895a8c (diff) |
net: use synchronize_net() in dev_change_name()
dev_change_name() holds RTNL, we better use synchronize_net()
instead of plain synchronize_rcu().
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 31f2c97d1990..7cf15d2bf78d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1239,7 +1239,7 @@ rollback: netdev_name_node_del(dev->name_node); write_unlock(&dev_base_lock); - synchronize_rcu(); + synchronize_net(); write_lock(&dev_base_lock); netdev_name_node_add(net, dev->name_node); |