summaryrefslogtreecommitdiff
path: root/scripts/extract-fwblobs
diff options
context:
space:
mode:
authorHuisong Li <lihuisong@huawei.com>2025-01-09 11:17:07 +0300
committerGuenter Roeck <linux@roeck-us.net>2025-01-09 23:44:25 +0300
commit7532e68f5d8f05353765d7585a791a14985d68b7 (patch)
treed89cdfed0c5d42bf2d052611ed0cc181b05b87d1 /scripts/extract-fwblobs
parentc909e68f81279cb5147c6f4a7ecf80e4c6c19b04 (diff)
downloadlinux-7532e68f5d8f05353765d7585a791a14985d68b7.tar.xz
hwmon: (acpi_power_meter) Fix uninitialized variables
The 'power1_alarm' attribute uses the 'power' and 'cap' in the acpi_power_meter_resource structure. Currently, these two fields are just updated when user query 'power' and 'cap' attribute. If user directly query the 'power1_alarm' attribute without queryng above two attributes, driver will use uninitialized variables to judge. So this patch adds the setting of alarm state and update 'cap' in the notification callback and update 'power' and 'cap' if needed to show the real alarm state. Signed-off-by: Huisong Li <lihuisong@huawei.com> Link: https://lore.kernel.org/r/20250109081708.27366-2-lihuisong@huawei.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions