Kangjie Lu 248b57015f 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>
2019-01-17 22:27:39 +01:00
..
2018-09-10 21:31:11 +02:00
2017-09-07 14:33:13 -07:00
2016-01-04 09:57:32 +01:00
2017-03-29 21:02:27 +02:00
2016-01-04 09:57:36 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:35 +01:00
2018-09-10 21:31:11 +02:00