aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy/git:/ssh:
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-08-09 10:56:26 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2022-08-17 14:09:37 +0200
commit45b8850b3d3071d5ea9e19ad4a29ad5f0b5d1ec1 (patch)
treef74dff2a86884e69e37b1e684ebad214acd68a60 /include/linux/phy/git:/ssh:
parentthermal/of: Rework the thermal device tree initialization (diff)
downloadlinux-dev-45b8850b3d3071d5ea9e19ad4a29ad5f0b5d1ec1.tar.xz
linux-dev-45b8850b3d3071d5ea9e19ad4a29ad5f0b5d1ec1.zip
thermal/of: Fix error code in of_thermal_zone_find()
Currently, if we cannot find the correct thermal zone then this error path returns NULL and it would lead to an Oops in the caller. Return ERR_PTR(-EINVAL) instead. Fixes: 3bd52ac87347 ("thermal/of: Rework the thermal device tree initialization") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YvDzovkMCQecPDjz@kili Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'include/linux/phy/git:/ssh:')
0 files changed, 0 insertions, 0 deletions