aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTong Zhang <[email protected]>2022-07-29 20:33:24 -0700
committerGreg Kroah-Hartman <[email protected]>2022-08-16 15:13:27 +0200
commit7b84ab85b12648bc27016088776bbd075e022be3 (patch)
treec0eea5790331fd2bb5f5619a4bd93c0b387f8ecc /tools/perf/scripts/python
parentc5682c05b26215592faa97deeec896454179169b (diff)
staging: rtl8192u: fix rmmod warn when device is renamed
This driver creates 4 debug files under [devname] folder. The devname could be wlan0 initially, however it could be renamed later to e.g. enx00e04c00000. This will cause problem during debug file teardown since it uses netdev->name, which is no longer wlan0. To solve this problem, add a notifier to handle device renaming. Also note that we cannot simply do debugfs_lookup to find out old dentry since by the time the notifier is called, netdev->name is already changed to new name. Reported-by: Zheyu Ma <[email protected]> Tested-by: Zheyu Ma <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Tong Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions