kernel_samsung_a53x/drivers/net/wireless/intel/iwlwifi/fw
Miri Korenblit 022625e9e3 wifi: iwlwifi: fix EWRD table validity check
[ Upstream commit c8d8f3911135921ace8e939ea0956b55f74bf8a0 ]

EWRD ACPI table contains up to 3 additional sar profiles.
According to the BIOS spec, the table contains a n_profile
variable indicating how many additional profiles exist in the
table.
Currently we check that n_profiles is not <= 0.
But according to the BIOS spec, 0 is a valid value,
and it can't be < 0 anyway because we receive that from ACPI as
an unsigned integer.

Fixes: 39c1a9728f93 ("iwlwifi: refactor the SAR tables from mvm to acpi")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://msgid.link/20240129211905.448ea2f40814.Iffd2aadf8e8693e6cb599bee0406a800a0c1e081@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:39 +01:00
..
api Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
acpi.c wifi: iwlwifi: fix EWRD table validity check 2024-11-19 08:44:39 +01:00
acpi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dbg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error-dump.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
img.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
img.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
notif-wait.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
notif-wait.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
paging.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pnvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pnvm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
runtime.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00