]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: iwlwifi: fix 22000 series SMEM parsing
authorJohannes Berg <johannes.berg@intel.com>
Mon, 10 Nov 2025 13:02:19 +0000 (15:02 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 21 Jan 2026 12:23:02 +0000 (14:23 +0200)
commit58192b9ce09b0f0f86e2036683bd542130b91a98
treeba079dc8447a9c50b5e5ecfb3a9c403702f72b66
parent5f05d20180059f00e17b514c1022963034756cfd
wifi: iwlwifi: fix 22000 series SMEM parsing

If the firmware were to report three LMACs (which doesn't
exist in hardware) then using "fwrt->smem_cfg.lmac[2]" is
an overrun of the array. Reject such and use IWL_FW_CHECK
instead of WARN_ON in this function.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20251110150012.16e8c2d70c26.Iadfcc1aedf43c5175b3f0757bea5aa232454f1ac@changeid
drivers/net/wireless/intel/iwlwifi/fw/smem.c