commit | 2663959af22c485a5ee662f8189075912e3280b3 | [log] [tgz] |
---|---|---|
author | Kangjie Lu <kjlu@umn.edu> | Sat Mar 09 00:04:11 2019 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat May 04 09:20:22 2019 +0200 |
tree | 0f1ad09cb889b589987b4694ff0c239190756762 | |
parent | 13a6a6dd3c11cc1b08a68561d637269a6e96514c [diff] |
leds: pca9532: fix a potential NULL pointer dereference [ Upstream commit 0aab8e4df4702b31314a27ec4b0631dfad0fae0a ] 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> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>