Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > Commit a8b5aef2cca1 ("wifi: rtl8xxxu: gen2: Enable 40 MHz channel width") > introduced a line where the pointer returned by ieee80211_find_sta() is > used after rcu_read_unlock(). > > Move rcu_read_unlock() a bit lower to fix this. > > Fixes: a8b5aef2cca1 ("wifi: rtl8xxxu: gen2: Enable 40 MHz channel width") > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> > Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 7927afb5e27b wifi: rtl8xxxu: Fix use after rcu_read_unlock in rtl8xxxu_bss_info_changed -- https://patchwork.kernel.org/project/linux-wireless/patch/3c82ad09-7593-3be1-1d2c-e58505fb43cb@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches