aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strscpy.c
diff options
context:
space:
mode:
authorZhang Rui <[email protected]>2023-03-29 17:00:55 +0800
committerRafael J. Wysocki <[email protected]>2023-03-29 18:07:14 +0200
commit4eb7c2f3a3d7cd6c50f391ac555b50c3fc5b3799 (patch)
tree6601a3d1f71b734fd3629fdce28dc7ec8f0cce27 /lib/test_fortify/write_overflow-strscpy.c
parent85b52122e5426e15602c0b979012e50d7271ea1a (diff)
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 <[email protected]> Signed-off-by: Zhang Rui <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions