]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: iwlwifi: acpi: validate the WGDS table
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 19 Mar 2026 18:48:50 +0000 (20:48 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 25 Mar 2026 09:31:56 +0000 (11:31 +0200)
commitf951689793e6c5e908be143fcc506aafa5bf3c36
treece272d37ca0f60ffff23b477a2540837bac4daf8
parentc30e4e03721dc75adfff6b4c2ad671dab71f319c
wifi: iwlwifi: acpi: validate the WGDS table

Prefer to use ARRAY_SIZE when we check array-length.
Make sure num_profile isn't bigger than the number of profiles we can
actually store in the firmware runtime object.
Same of the number of bands.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260319204647.a398511514ed.Ie4e62e2008f7e117ae7e305967ffadf1a30fc2b1@changeid
drivers/net/wireless/intel/iwlwifi/fw/acpi.c