commit | 0aab8e4df4702b31314a27ec4b0631dfad0fae0a | [log] [tgz] |
---|---|---|
author | Kangjie Lu <kjlu@umn.edu> | Sat Mar 09 00:04:11 2019 -0600 |
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | Sat Mar 30 18:50:00 2019 +0100 |
tree | b6c1a7919caf3c642e674ec56ae2b1f85bdb6566 | |
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>