diff options
author | 2018-12-25 22:18:23 -0600 | |
---|---|---|
committer | 2019-01-17 22:27:39 +0100 | |
commit | 248b57015f35c94d4eae2fdd8c6febf5cd703900 (patch) | |
tree | 880652e44f82321bb1c3130f2636b42ce80d2b2a /net/unix/af_unix.c | |
parent | Linux 5.0-rc1 (diff) | |
download | wireguard-linux-248b57015f35c94d4eae2fdd8c6febf5cd703900.tar.xz wireguard-linux-248b57015f35c94d4eae2fdd8c6febf5cd703900.zip |
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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions