diff options
author | 2019-03-09 00:04:11 -0600 | |
---|---|---|
committer | 2019-03-30 18:50:00 +0100 | |
commit | 0aab8e4df4702b31314a27ec4b0631dfad0fae0a (patch) | |
tree | b6c1a7919caf3c642e674ec56ae2b1f85bdb6566 /drivers/leds/leds-s3c24xx.c | |
parent | leds: trigger: netdev: fix refcnt leak on interface rename (diff) | |
download | linux-dev-0aab8e4df4702b31314a27ec4b0631dfad0fae0a.tar.xz linux-dev-0aab8e4df4702b31314a27ec4b0631dfad0fae0a.zip |
leds: pca9532: fix a potential NULL pointer dereference
In case of_match_device cannot find a match, return -EINVAL to avoid
NULL pointer dereference.
Fixes: fa4191a609f2 ("leds: pca9532: Add device tree support")
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds/leds-s3c24xx.c')
0 files changed, 0 insertions, 0 deletions