diff options
author | Kangjie Lu <kjlu@umn.edu> | 2019-03-09 00:04:11 -0600 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2019-03-30 18:50:00 +0100 |
commit | 0aab8e4df4702b31314a27ec4b0631dfad0fae0a (patch) | |
tree | b6c1a7919caf3c642e674ec56ae2b1f85bdb6566 /drivers/leds/trigger | |
parent | 4cb6560514fa19d556954b88128f3846fee66a03 (diff) |
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/trigger')
0 files changed, 0 insertions, 0 deletions