aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSudeep Holla <[email protected]>2018-03-15 16:54:18 +0000
committerSudeep Holla <[email protected]>2018-03-20 12:13:48 +0000
commitc09880cef78d0ddf149cdfeb733027a806465ba2 (patch)
tree6927b1cf35b6754e99d46654263ee322430110b1 /tools/perf/scripts/python/export-to-postgresql.py
parent02f208c5c60549039445402505dea284e15f0f4f (diff)
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 <[email protected]> Acked-by: Guenter Roeck <[email protected]> Cc: [email protected] Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions