OpenCloudOS-Kernel/drivers/net/wireless/realtek
Andreas Färber ac4bac9916 rtw88: Fix potential probe error handling race with wow firmware loading
If rtw_core_init() fails to load the wow firmware, rtw_core_deinit()
will not get called to clean up the regular firmware.

Ensure that an error loading the wow firmware does not produce an oops
for the regular firmware by waiting on its completion to be signalled
before returning. Also release the loaded firmware.

Fixes: c8e5695eae ("rtw88: load wowlan firmware if wowlan is supported")
Cc: Chin-Yen Lee <timlee@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200920132621.26468-3-afaerber@suse.de
2020-09-24 18:49:56 +03:00
..
rtl8xxxu rtl8xxxu: prevent potential memory leak 2020-09-09 10:29:43 +03:00
rtl818x rtl818x_pci: switch from 'pci_' to 'dma_' API 2020-09-01 12:34:20 +03:00
rtlwifi rtlwifi: rtl8723be: use true,false for bool variable large_cfo_hit 2020-09-22 10:18:38 +03:00
rtw88 rtw88: Fix potential probe error handling race with wow firmware loading 2020-09-24 18:49:56 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00