]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: acpi: fix WPFC reading
authorJohannes Berg <johannes.berg@intel.com>
Sun, 28 Jan 2024 06:53:55 +0000 (08:53 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:25 +0000 (18:19 -0400)
commit45eacd73727e6ff8404aeb3b83354bab98de9dfc
treee35816f47711a75d4941e5b7ed2a3e95227eeec3
parent783d413f332a3ebec916664b366c28f58147f82c
wifi: iwlwifi: acpi: fix WPFC reading

[ Upstream commit 296f3e926716ded8dc29e349d2b042b362f96515 ]

The code reading the WPFC table needs to take into account
the domain type (first element in the package), shouldn't
leak the memory if it fails, and has a bad comment. Fix all
these issues.

Fixes: c4c954547755 ("wifi: iwlwifi: implement WPFC ACPI table loading")
Reported-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Gregory Greenman Gregory <gregory.greenman@intel.com>
Link: https://msgid.link/20240128084842.2afeb476b62d.I200568dc42a277e21c12be99d5aaa39b009d45da@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
drivers/net/wireless/intel/iwlwifi/fw/acpi.h