Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: fa4191a ("leds: pca9532: Add device tree support") Signed-off-by: Kangjie Lu <[email protected]> Signed-off-by: Jacek Anaszewski <[email protected]>
- Loading branch information