gpio: palmas: fix a possible NULL dereference
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 11 Nov 2015 20:27:36 +0000 (21:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2015 13:40:24 +0000 (14:40 +0100)
commit5664de25fa8ad2f06d6d7dd44df61023e1aaaa14
tree49157661585b85faa62ca2a960258f601e94b3c1
parent853f0cb8603486a8ba17d5b728b52a9b4b029698
gpio: palmas: fix a possible NULL dereference

of_match_device could return NULL, and so cause a NULL pointer
dereference later.

Reported-by: coverity (CID 1130700)
Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-palmas.c