Skip to content
Commit 0aab8e4d authored by Kangjie Lu's avatar Kangjie Lu Committed by Jacek Anaszewski
Browse files

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: fa4191a6 ("leds: pca9532: Add device tree support")
Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 4cb65605
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment