diff options
| author | Murad Masimov <[email protected]> | 2024-11-21 17:36:03 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2024-11-23 17:49:03 +0000 |
| commit | de2bf507fabba9c0c678cf5ed54beb546f5ca29a (patch) | |
| tree | cdda0d231aee3fc25edb6d95582643abbadd6fb1 /drivers/usb/cdns3/cdns3-ti.c | |
| parent | hwmon: (tmp108) Do not fail in I3C probe when I3C regmap is a module (diff) | |
| download | kernel-de2bf507fabba9c0c678cf5ed54beb546f5ca29a.tar.gz kernel-de2bf507fabba9c0c678cf5ed54beb546f5ca29a.zip | |
hwmon: (tps23861) Fix reporting of negative temperatures
Negative temperatures are reported as large positive temperatures
due to missing sign extension from unsigned int to long. Cast unsigned
raw register values to signed before performing the calculations
to fix the problem.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: fff7b8ab2255 ("hwmon: add Texas Instruments TPS23861 driver")
Signed-off-by: Murad Masimov <[email protected]>
Message-ID: <[email protected]>
[groeck: Updated subject and description]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
