Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote: > The 'vif' is from tx_info of SKB, and other codes check 'vif' before using, > which raises smatch warnings: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:5656 rtl8xxxu_tx() > warn: variable dereferenced before check 'vif' (see line 5553) > > Compile tested only. > > Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 513c559ca9f0 wifi: rtl8xxxu: check vif before using in rtl8xxxu_tx() -- https://patchwork.kernel.org/project/linux-wireless/patch/20240216033923.34683-1-pkshih@xxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches