diff options
author | Thadeu Lima de Souza Cascardo <cascardo@igalia.com> | 2024-11-07 10:33:21 -0300 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2024-11-18 09:50:28 +0800 |
commit | 00260350aed80c002df270c805ca443ec9a719a6 (patch) | |
tree | 842e63d6ea3dde3283235c4c2efc1ea3a02ef18b /tools/perf/scripts/python/sched-migration.py | |
parent | b4b26642b31ef282df6ff7ea8531985edfdef12a (diff) |
wifi: rtlwifi: fix init_sw_vars leak when probe fails
If ieee80211_register_hw fails, the memory allocated for the firmware will
not be released. Call deinit_sw_vars as the function that undoes the
allocationes done by init_sw_vars.
Fixes: cefe3dfdb9f5 ("rtl8192cu: Call ieee80211_register_hw from rtl_usb_probe")
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241107133322.855112-5-cascardo@igalia.com
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions