diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-02-23 02:10:25 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-03-13 16:29:44 +0300 |
commit | 41130c32f3a18fcc930316da17f3a5f3bc326aa1 (patch) | |
tree | 465d2205891e6b140cd9d5a4dd2407c2d890f389 /tools/perf/scripts/python/task-analyzer.py | |
parent | 96c069508377547f913e7265a80fffe9355de592 (diff) | |
download | linux-41130c32f3a18fcc930316da17f3a5f3bc326aa1.tar.xz |
wifi: mt76: do not run mt76_unregister_device() on unregistered hw
Trying to probe a mt7921e pci card without firmware results in a
successful probe where ieee80211_register_hw hasn't been called. When
removing the driver, ieee802111_unregister_hw is called unconditionally
leading to a kernel NULL pointer dereference.
Fix the issue running mt76_unregister_device routine just for registered
hw.
Link: https://bugs.debian.org/1029116
Link: https://bugs.kali.org/view.php?id=8140
Reported-by: Stuart Hayhurst <stuart.a.hayhurst@gmail.com>
Fixes: 1c71e03afe4b ("mt76: mt7921: move mt7921_init_hw in a dedicated work")
Tested-by: Helmut Grohne <helmut@freexian.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/be3457d82f4e44bb71a22b2b5db27b644a37b1e1.1677107277.git.lorenzo@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions