]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41714d0fc794738cd6d0d62bd7c58c092ea3b1aa
tree49157661585b85faa62ca2a960258f601e94b3c1
parent1145055c78cf97a69cb5c2b52ac4418eb55c27b8
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