diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-01-15 09:55:43 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-17 01:20:50 +0000 |
| commit | e361560a7912958ba3059f51e7dd21612d119169 (patch) | |
| tree | 5c2f350308efc537e84ac3f6876f61b33ba9c2a1 /net/core/rtnl_net_debug.c | |
| parent | selftests: drv-net-hw: inject pp_alloc_fail errors in the right place (diff) | |
| download | kernel-e361560a7912958ba3059f51e7dd21612d119169.tar.gz kernel-e361560a7912958ba3059f51e7dd21612d119169.zip | |
dev: Acquire netdev_rename_lock before restoring dev->name in dev_change_name().
The cited commit forgot to add netdev_rename_lock in one of the
error paths in dev_change_name().
Let's hold netdev_rename_lock before restoring the old dev->name.
Fixes: 0840556e5a3a ("net: Protect dev->name by seqlock.")
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/rtnl_net_debug.c')
0 files changed, 0 insertions, 0 deletions
