1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/mvm
Miri Korenblit 4130c67cd1 wifi: iwlwifi: mvm: check vif for NULL/ERR_PTR before dereference
iwl_mvm_get_bss_vif might return a NULL or ERR_PTR. Some of the callers
check only the NULL case, and some doesn't check at all.

Some of the callers even have a pointer to the mvmvif of the bss vif,
so we don't even need to call this function, and can simply get the vif
from mvmvif. Do it for those cases, and for the others - properly check
if IS_ERR_OR_NULL

Fixes: ec0d43d26f ("wifi: iwlwifi: mvm: Activate EMLSR based on traffic volume")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240703064027.a661f8c65aac.I45cf09b01af8ee3d55828863958ead741ea43b7f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-07-03 16:06:54 +02:00
..
tests wifi: iwlwifi: mvm: record and return channel survey information 2024-05-06 16:33:25 +02:00
binding.c wifi: iwlwifi: mvm: Refactor iwl_mvm_get_lmac_id() 2023-06-14 12:32:20 +02:00
coex.c wifi: iwlwifi: cleanup EMLSR when BT is active handling 2024-05-06 16:33:23 +02:00
constants.h wifi: iwlwifi: mvm: Activate EMLSR based on traffic volume 2024-05-06 16:33:23 +02:00
d3.c wifi: iwlwifi: mvm: Handle BIGTK cipher in kek_kck cmd 2024-05-29 15:30:13 +02:00
debugfs-vif.c wifi: iwlwifi: mvm: add a debugfs for reading EMLSR blocking reasons 2024-05-06 16:33:25 +02:00
debugfs.c wifi: iwlwifi: mvm: always set the TWT IE offset 2024-05-29 15:26:05 +02:00
debugfs.h wifi: iwlwifi: mvm: add a per-link debugfs 2023-10-23 12:21:47 +02:00
ftm-initiator.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-04-25 12:41:37 -07:00
ftm-responder.c wifi: iwlwifi: mvm: support wider-bandwidth OFDMA 2024-02-21 15:19:04 +01:00
fw-api.h iwlwifi: mvm/api: define system control command 2021-12-07 20:06:45 +02:00
fw.c wifi: iwlwifi: mvm: don't read past the mfuart notifcation 2024-05-29 15:30:14 +02:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
link.c wifi: iwlwifi: mvm: exit EMLSR if secondary link is not used 2024-05-06 16:33:26 +02:00
mac-ctxt.c wifi: iwlwifi: mvm: always set the TWT IE offset 2024-05-29 15:26:05 +02:00
mac80211.c wifi: iwlwifi: mvm: check vif for NULL/ERR_PTR before dereference 2024-07-03 16:06:54 +02:00
Makefile Kbuild updates for v6.10 2024-05-18 12:39:20 -07:00
mld-key.c wifi: iwlwifi: mvm: don't set the MFP flag for the GTK 2024-02-08 15:00:48 +01:00
mld-mac.c wifi: iwlwifi: mvm: Fix the listener MAC filter flags 2024-02-12 21:24:51 +01:00
mld-mac80211.c wifi: iwlwifi: mvm: don't initialize csa_work twice 2024-05-29 15:26:05 +02:00
mld-sta.c wifi: iwlwifi: mvm: handle BA session teardown in RF-kill 2024-05-29 15:30:13 +02:00
mvm.h wifi: iwlwifi: mvm: always set the TWT IE offset 2024-05-29 15:26:05 +02:00
nvm.c wifi: iwlwifi: read WRDD table from UEFI 2024-02-02 14:37:27 +01:00
offloading.c wifi: iwlwifi: mvm: fix the sta id in offload 2024-03-25 15:36:03 +01:00
ops.c wifi: iwlwifi: mvm: check vif for NULL/ERR_PTR before dereference 2024-07-03 16:06:54 +02:00
phy-ctxt.c wifi: iwlwifi: mvm: support PHY context version 6 2024-02-21 15:19:04 +01:00
power.c wifi: iwlwifi: mvm: Move beacon filtering to be per link 2024-03-25 15:36:03 +01:00
ptp.c wifi: iwlwifi: mvm: Use 64-bit division helper in iwl_mvm_get_crosstimestamp_fw() 2023-03-30 11:16:21 +02:00
quota.c wifi: iwlwifi: mvm: vif preparation for MLO 2023-03-30 12:07:52 +02:00
rfi.c wifi: iwlwifi: mvm: rfi: fix potential response leaks 2024-03-25 15:23:07 +01:00
rs-fw.c wifi: iwlwifi: mvm: use already determined cmd_id 2024-05-06 16:33:25 +02:00
rs.c wifi: iwlwifi: fix some kernel-doc issues 2024-02-02 13:47:46 +01:00
rs.h wifi: iwlwifi: mvm: revert gen2 TX A-MPDU size to 64 2024-05-29 15:30:11 +02:00
rx.c wifi: iwlwifi: mvm: check vif for NULL/ERR_PTR before dereference 2024-07-03 16:06:54 +02:00
rxmq.c wifi: iwlwifi: mvm: set properly mac header 2024-05-29 15:30:13 +02:00
scan.c wifi: iwlwifi: scan: correctly check if PSC listen period is needed 2024-06-12 10:11:33 +02:00
sf.c wifi: iwlwifi: mvm: don't send the smart fifo command if not needed 2024-02-08 15:00:48 +01:00
sta.c wifi: iwlwifi: mvm: handle BA session teardown in RF-kill 2024-05-29 15:30:13 +02:00
sta.h wifi: iwlwifi: mvm: remove stale STA link data during restart 2024-05-29 15:30:13 +02:00
tdls.c wifi: iwlwifi: make time_events MLO aware 2023-10-23 12:48:27 +02:00
testmode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
time-event.c wifi: iwlwifi: mvm: unlock mvm mutex 2024-06-12 10:10:50 +02:00
time-event.h wifi: iwlwifi: make time_events MLO aware 2023-10-23 12:48:27 +02:00
time-sync.c wifi: iwlwifi: mvm: support enabling and disabling HW timestamping 2023-03-22 13:16:37 +01:00
time-sync.h wifi: iwlwifi: mvm: support enabling and disabling HW timestamping 2023-03-22 13:16:37 +01:00
tt.c thermal: core: Eliminate writable trip points masks 2024-02-27 12:04:38 +01:00
tx.c wifi: iwlwifi: mvm: Activate EMLSR based on traffic volume 2024-05-06 16:33:23 +02:00
utils.c wifi: iwlwifi: mvm: don't request statistics in restart 2024-05-06 16:33:26 +02:00
vendor-cmd.c iwlwifi: mvm: return value for request_ownership 2022-03-02 22:37:25 +01:00