diff options
author | 2022-03-02 18:24:21 -0800 | |
---|---|---|
committer | 2022-03-08 16:33:15 +0100 | |
commit | c91a5b1c221a58d008485cf7d02ccce73108b119 (patch) | |
tree | 9975e3c41415be9ceaa08c1d8a8aa4799711e8fe /scripts/generate_rust_analyzer.py | |
parent | platform/x86: thinkpad_acpi: Add PSC mode support (diff) | |
download | wireguard-linux-c91a5b1c221a58d008485cf7d02ccce73108b119.tar.xz wireguard-linux-c91a5b1c221a58d008485cf7d02ccce73108b119.zip |
platform/x86: huawei-wmi: check the return value of device_create_file()
The function device_create_file() in huawei_wmi_battery_add() can fail,
so its return value should be checked.
Fixes: 355a070b09ab ("platform/x86: huawei-wmi: Add battery charging thresholds")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20220303022421.313-1-baijiaju1990@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions