1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless
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
..
admtek wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
ath Merge ath-current from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2024-06-01 12:57:28 +03:00
atmel wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
broadcom tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
intel wifi: iwlwifi: mvm: check vif for NULL/ERR_PTR before dereference 2024-07-03 16:06:54 +02:00
intersil wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
marvell MMC core: 2024-05-16 08:56:49 -07:00
mediatek wifi: mt76: mt7615: add missing chanctx ops 2024-06-01 13:00:59 +03:00
microchip wifi: wilc1000: fix ies_len type in connect path 2024-07-03 16:49:53 +03:00
purelifi wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
quantenna wifi: qtnfmac: Remove generic .ndo_get_stats64 2024-05-02 10:20:04 +03:00
ralink wifi: rt2x00: silence sparse warnings 2024-02-28 13:37:22 +02:00
realtek wifi: rtlwifi: Ignore IEEE80211_CONF_CHANGE_RETRY_LIMITS 2024-06-01 13:15:26 +03:00
rsi wifi: rsi: sdio: simplify module initialization 2024-04-05 11:59:38 +03:00
silabs wifi: wfx: drop driver owner initialization 2024-04-04 11:09:12 +02:00
st wifi: cw1200: restore endian swapping 2024-03-05 20:54:15 +02:00
ti wifi: wlcore: fix wlcore AP mode 2024-06-18 12:16:57 +03:00
virtual virtio: features, fixes, cleanups 2024-05-23 12:04:36 -07:00
zydas wifi: zd1211rw: silence sparse warnings 2024-02-28 13:37:23 +02:00
Kconfig wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00
Makefile wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00