Searched hist:"4 eb7c2f3a3d7cd6c50f391ac555b50c3fc5b3799" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/thermal/ |
H A D | thermal_hwmon.c | diff 4eb7c2f3a3d7cd6c50f391ac555b50c3fc5b3799 Wed Mar 29 04:00:55 CDT 2023 Zhang Rui <rui.zhang@intel.com> 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>
|