wifi: rtw89: fix null vif pointer when get management frame date rate
authorKuan-Chung Chen <damon.chen@realtek.com>
Fri, 6 Jan 2023 12:15:16 +0000 (20:15 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 16 Jan 2023 13:37:42 +0000 (15:37 +0200)
commit95dafeabe477d9692154e85140eda5124895ea4f
treed78bfc1836a275dd79e51da217577105721ab5a9
parentfbc2caf19914371973f14b6ac7ef525c49e4b1f1
wifi: rtw89: fix null vif pointer when get management frame date rate

When transmitting a packet that gets from ieee80211_nullfunc_get(),
the vif in tx_info->control was no assigned, which will cause
dereferencing a null pointer.

Signed-off-by: Kuan-Chung Chen <damon.chen@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230106121517.19841-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c