diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2025-10-18 06:04:57 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 14:10:28 +0100 |
| commit | 9736fab64459051fbd95e5d1f7dbb74ec1c88a30 (patch) | |
| tree | 463705c48d920a21d1fd15afe6c68fb8a47dc197 /tools/perf/scripts/python | |
| parent | 240b82b86a091c1aa49d951d4467425420a081a0 (diff) | |
hwmon: (sht3x) Fix error handling
[ Upstream commit 8dcc66ad379ec0642fb281c45ccfd7d2d366e53f ]
Handling of errors when reading status, temperature, and humidity returns
the error number as negative attribute value. Fix it up by returning
the error as return value.
Fixes: a0ac418c6007c ("hwmon: (sht3x) convert some of sysfs interface to hwmon")
Cc: JuenKit Yip <JuenKit_Yip@hotmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
