]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8723: Add error handling to no existing firmware
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 29 Dec 2017 08:31:09 +0000 (16:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:07:45 +0000 (19:07 +0200)
commit7784230b80952dfc933bb8363fadfb77f0ed31d3
tree9b0c71a0b51c0d9a3e8ea9ac686c797f1589aadb
parent31c7b9fc50d871275608da317f6b68cb14b03ad7
rtlwifi: rtl8723: Add error handling to no existing firmware

Without firmware, driver wastes time to download and wait for MCU bootup,
and then kernel core dump finally. If request_firmware fails, the value
max_fw_size=0 is set, so we check the value before downloading firmware.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8723com/fw_common.c