OSDN Git Service

wifi: iwlwifi: fw: don't use constant size with efi.get_variable
authorGregory Greenman <gregory.greenman@intel.com>
Tue, 6 Jun 2023 07:43:09 +0000 (10:43 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 11:45:30 +0000 (13:45 +0200)
commit8ae3e23195188a925b9a3e05f34f114441d97e14
tree91b7617daf670883a37e0cc3f99e8eb52a1e0f73
parent875d035f37ec06a27c61abd9103178ae5a674672
wifi: iwlwifi: fw: don't use constant size with efi.get_variable

Use efi.get_variable() with NULL pointer for data in order to
obtain entry size and then call it again with the correct size
to get the entry itself.

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230606103519.ef95a8055a50.Iae5389baaf0a9a3c89469f7502275ee119d378b6@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/uefi.c
drivers/net/wireless/intel/iwlwifi/fw/uefi.h