diff options
| author | Stanislav Fomichev <[email protected]> | 2025-03-25 17:54:27 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-27 17:18:48 +0000 |
| commit | 2eb6c6a34cb1c22b09b219390cdff0f02cd90258 (patch) | |
| tree | 91b7845d708b07b594d3c8e41653793ceb331113 /tools/testing/selftests/drivers/net/lib/py/env.py | |
| parent | rndis_host: Flag RNDIS modems as WWAN devices (diff) | |
| download | kernel-2eb6c6a34cb1c22b09b219390cdff0f02cd90258.tar.gz kernel-2eb6c6a34cb1c22b09b219390cdff0f02cd90258.zip | |
net: move replay logic to tc_modify_qdisc
Eric reports that by the time we call netdev_lock_ops after
rtnl_unlock/rtnl_lock, the dev might point to an invalid device.
As suggested by Jakub in [0], move rtnl lock/unlock and request_module
outside of qdisc_create. This removes extra complexity with relocking
the netdev.
0: https://lore.kernel.org/netdev/[email protected]/
Fixes: a0527ee2df3f ("net: hold netdev instance lock during qdisc ndo_setup_tc")
Reported-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/netdev/[email protected]/T/#me8dfd778ea4c4463acab55644e3f9836bc608771
Signed-off-by: Stanislav Fomichev <[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 'tools/testing/selftests/drivers/net/lib/py/env.py')
0 files changed, 0 insertions, 0 deletions
