History

wifi: rtw88: add missing unwind goto for __rtw_download_firmware()

This flaw is detected by smatch: drivers/net/wireless/realtek/rtw88/mac.c:748 __rtw_download_firmware() warn: missing unwind goto? Though most things of dlfw_fail have been done by download_firmware_end_flow() and wlan_cpu_enable(), an exception is that download_firmware_end_flow() clear BIT_MCUFWDL_EN bit conditionally. So, make this change to clear the bit.

Ping-Ke Shih committed 3 years ago

Commit 91ccdbb1 parent cabb8b41 file · +4 −2Browse files

Unified · Split

drivers/net/wireless/realtek/rtw88/mac.c+4−2
@@ -794,8 +794,10 @@ static int __rtw_download_firmware(struct rtw_dev *rtwdev, · 793 unmodified lines
794 794
795 wlan_cpu_enable(rtwdev, true);795 wlan_cpu_enable(rtwdev, true);
796 796
797 if (!ltecoex_reg_write(rtwdev, 0x38, ltecoex_bckp))797 if (!ltecoex_reg_write(rtwdev, 0x38, ltecoex_bckp)) {
798 return -EBUSY;798 ret = -EBUSY;
799 goto dlfw_fail;
800 }
799 801
800 ret = download_firmware_validate(rtwdev);802 ret = download_firmware_validate(rtwdev);
801 if (ret)803 if (ret)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t