diff options
| author | Sanman Pradhan <psanman@juniper.net> | 2026-03-17 20:37:17 +0300 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-03-18 01:20:24 +0300 |
| commit | 19d4b9c8a136704d5f2544e7ac550f27918a5004 (patch) | |
| tree | 97fedb71f06d0ae604f29214cdd19ca457ddbf74 /scripts/Makefile.debug | |
| parent | c925fccc4f8fae4354d98b2af606bd4747d3738d (diff) | |
| download | linux-19d4b9c8a136704d5f2544e7ac550f27918a5004.tar.xz | |
hwmon: (pmbus/mp2975) Add error check for pmbus_read_word_data() return value
mp2973_read_word_data() XORs the return value of pmbus_read_word_data()
with PB_STATUS_POWER_GOOD_N without first checking for errors. If the I2C
transaction fails, a negative error code is XORed with the constant,
producing a corrupted value that is returned as valid status data instead
of propagating the error.
Add the missing error check before modifying the return value.
Fixes: acda945afb465 ("hwmon: (pmbus/mp2975) Fix PGOOD in READ_STATUS_WORD")
Cc: stable@vger.kernel.org
Signed-off-by: Sanman Pradhan <psanman@juniper.net>
Link: https://lore.kernel.org/r/20260317173308.382545-3-sanman.pradhan@hpe.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.debug')
0 files changed, 0 insertions, 0 deletions
