diff options
author | 2023-03-29 17:00:55 +0800 | |
---|---|---|
committer | 2023-03-29 18:07:14 +0200 | |
commit | 4eb7c2f3a3d7cd6c50f391ac555b50c3fc5b3799 (patch) | |
tree | 6601a3d1f71b734fd3629fdce28dc7ec8f0cce27 /scripts/generate_rust_analyzer.py | |
parent | Merge branch 'thermal-intel' (diff) | |
download | linux-rng-4eb7c2f3a3d7cd6c50f391ac555b50c3fc5b3799.tar.xz linux-rng-4eb7c2f3a3d7cd6c50f391ac555b50c3fc5b3799.zip |
thermal: thermal_hwmon: Fix a kernel NULL pointer dereference
When the hwmon device node of a thermal zone device is not found,
using hwmon->device causes a kernel NULL pointer dereference.
Fixes: dec07d399cc8 ("thermal: Don't use 'device' internal thermal zone structure field")
Reported-by: Preble Adam C <adam.c.preble@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions