rtw88: fix potential NULL pointer access for firmware
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Tue, 5 Nov 2019 09:04:42 +0000 (17:04 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 Nov 2019 17:58:05 +0000 (19:58 +0200)
commitf530c1961af27f68a009b5fa532a4ed14f9c0e8c
tree0dea525eb13a389dff9d1419fa4d2c9619caa809
parent5174f1e41074b5186608badc2e89441d021e8c08
rtw88: fix potential NULL pointer access for firmware

Driver could access a NULL firmware pointer if we don't
return here.

Fixes: 5195b90426409 ("rtw88: avoid FW info flood")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/main.c