Re: [PATCH 5.0 100/101] leds: pca9532: fix a potential NULL pointer dereference

2019-05-06 Thread Greg Kroah-Hartman
On Mon, May 06, 2019 at 10:21:28AM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Thu, May 2, 2019 at 5:34 PM Greg Kroah-Hartman > wrote: > > [ Upstream commit 0aab8e4df4702b31314a27ec4b0631dfad0fae0a ] > > > > In case of_match_device cannot find a match, return -EINVAL to avoid > > NULL poin

Re: [PATCH 5.0 100/101] leds: pca9532: fix a potential NULL pointer dereference

2019-05-06 Thread Geert Uytterhoeven
Hi Greg, On Thu, May 2, 2019 at 5:34 PM Greg Kroah-Hartman wrote: > [ 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")

[PATCH 5.0 100/101] leds: pca9532: fix a potential NULL pointer dereference

2019-05-02 Thread Greg Kroah-Hartman
[ 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 Signed-off-by: Jacek Anaszewski Signed-off-by: Sas