diff options
| author | Kurt Borja <[email protected]> | 2025-04-16 16:50:23 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-04-17 11:16:16 +0000 |
| commit | 4a8e04e2bdcb98d513e97b039899bda03b07bcf2 (patch) | |
| tree | c4aa4c343993df6eb6b03d9469cec9521452e58b /tools/testing/selftests/drivers/net/hw/lib/py/linkconfig.py | |
| parent | platform/x86/intel-uncore-freq: Fix missing uncore sysfs during CPU hotplug (diff) | |
| download | kernel-4a8e04e2bdcb98d513e97b039899bda03b07bcf2.tar.gz kernel-4a8e04e2bdcb98d513e97b039899bda03b07bcf2.zip | |
platform/x86: alienware-wmi-wmax: Fix uninitialized variable due to bad error handling
wmax_thermal_information() may also return -ENOMSG, which would leave
`id` uninitialized in thermal_profile_probe.
Reorder and modify logic to catch all errors.
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Fixes: 27e9e6339896 ("platform/x86: alienware-wmi: Refactor thermal control methods")
Signed-off-by: Kurt Borja <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/lib/py/linkconfig.py')
0 files changed, 0 insertions, 0 deletions
