Linux/linux 248b570 — drivers/leds leds-lp5523.c
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 at umn.edu> Signed-off-by: Jacek Anaszewski <jacek.anaszewski at gmail.com>
Delta | File | |
---|---|---|
+3 | -1 | drivers/leds/leds-lp5523.c |
+3 | -1 | 1 files |