mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
iwlwifi: acpi: fix wgds rev 3 size
The exact size of WGDS revision 3 was calculated using the wrong parameters. Fix it. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20211204130722.12c5b0cffe52.I7f342502f628f43a7e000189a699484bcef0f562@changeid Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
020cde4750
commit
dc276ffd07
|
|
@ -789,7 +789,7 @@ int iwl_sar_get_wgds_table(struct iwl_fw_runtime *fwrt)
|
|||
* looking up in ACPI
|
||||
*/
|
||||
if (wifi_pkg->package.count !=
|
||||
min_size + profile_size * num_profiles) {
|
||||
hdr_size + profile_size * num_profiles) {
|
||||
ret = -EINVAL;
|
||||
goto out_free;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user