aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/ice40-spi.c
diff options
context:
space:
mode:
authorAnsuel Smith <[email protected]>2021-09-07 21:25:42 +0000
committerDaniel Lezcano <[email protected]>2021-09-21 13:17:11 +0000
commitcf96921876dcee4d6ac07b9de470368a075ba9ad (patch)
treebd545e475248099c953c4ddb71a412cc1f3c3cb4 /drivers/fpga/ice40-spi.c
parentthermal/core: Potential buffer overflow in thermal_build_list_of_policies() (diff)
downloadkernel-cf96921876dcee4d6ac07b9de470368a075ba9ad.tar.gz
kernel-cf96921876dcee4d6ac07b9de470368a075ba9ad.zip
thermal/drivers/tsens: Fix wrong check for tzd in irq handlers
Some devices can have some thermal sensors disabled from the factory. The current two irq handler functions check all the sensor by default and the check if the sensor was actually registered is wrong. The tzd is actually never set if the registration fails hence the IS_ERR check is wrong. Signed-off-by: Ansuel Smith <[email protected]> Reviewed-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/ice40-spi.c')
0 files changed, 0 insertions, 0 deletions