]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: coex: initialize local .dbcc_2g_phy in _set_btg_ctrl()
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 19 Sep 2024 08:12:15 +0000 (16:12 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 26 Sep 2024 01:22:02 +0000 (09:22 +0800)
commit6cdfb5659624081aedc8786ab89df927c264bb18
treea4b69cf0e4b5ee474ce0b49da66f42bb7e6747a7
parent630d5d8f2bf6b340202b6bc2c05d794bbd8e4c1c
wifi: rtw89: coex: initialize local .dbcc_2g_phy in _set_btg_ctrl()

For the case of DBCC enabled and fwrole version 0, the local variable
wl_rinfo.dbcc_2g_phy might not be set by following for-loop, leading
uninitialized variable before using.

Addresses-Coverity-ID: 1586724 ("Uninitialized scalar variable")

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240919081216.28505-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/coex.c