diff options
author | Sascha Hauer <[email protected]> | 2023-08-23 09:50:21 +0200 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2023-08-25 13:02:27 +0300 |
commit | 290564367ab7fa7e2048bdc00d9c0ad016b41eea (patch) | |
tree | 8364ba6c18aaa51edecaa6edf5d974c99eb86db7 /tools/perf/scripts/python/stackcollapse.py | |
parent | 78d84f35d2c3bf4434e9d785e4b4c33fa8e57878 (diff) |
wifi: rtw88: usb: kill and free rx urbs on probe failure
After rtw_usb_alloc_rx_bufs() has been called rx urbs have been
allocated and must be freed in the error path. After rtw_usb_init_rx()
has been called they are submitted, so they also must be killed.
Add these forgotten steps to the probe error path.
Besides the lost memory this also fixes a problem when the driver
fails to download the firmware in rtw_chip_info_setup(). In this
case it can happen that the completion of the rx urbs handler runs
at a time when we already freed our data structures resulting in
a kernel crash.
Fixes: a82dfd33d123 ("wifi: rtw88: Add common USB chip support")
Cc: [email protected]
Reported-by: Ilgaz Ă–cal <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
Acked-by: Larry Finger <[email protected]>
Acked-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions