commit | 248b57015f35c94d4eae2fdd8c6febf5cd703900 | [log] [tgz] |
---|---|---|
author | Kangjie Lu <kjlu@umn.edu> | Tue Dec 25 22:18:23 2018 -0600 |
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | Thu Jan 17 22:27:39 2019 +0100 |
tree | 880652e44f82321bb1c3130f2636b42ce80d2b2a | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c [diff] |
leds: lp5523: fix a missing check of return value of lp55xx_read When lp55xx_read() fails, "status" is an uninitialized variable and thus may contain random value; using it leads to undefined behaviors. The fix inserts a check for the return value of lp55xx_read: if it fails, returns with its error code. Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>