summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/arm_scmi
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2018-03-15 17:54:18 +0100
committerSudeep Holla <sudeep.holla@arm.com>2018-03-20 13:13:48 +0100
commitc09880cef78d0ddf149cdfeb733027a806465ba2 (patch)
tree6927b1cf35b6754e99d46654263ee322430110b1 /drivers/firmware/arm_scmi
parentcpufreq: scmi: add support for fast frequency switching (diff)
downloadlinux-c09880cef78d0ddf149cdfeb733027a806465ba2.tar.xz
linux-c09880cef78d0ddf149cdfeb733027a806465ba2.zip
hwmon: (scmi) return -EINVAL when sensor information is unavailable
Passing NULL pointer to PTR_ERR will result in return value of 0 indicating success which is clearly not what it is intended here. This patch returns -EINVAL instead when the sensor information is not available. Fixes: b23688aefb8b ("hwmon: add support for sensors exported via ARM SCMI") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Cc: linux-hwmon@vger.kernel.org Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi')
0 files changed, 0 insertions, 0 deletions