gpio: syscon: fix a possible NULL dereference
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 11 Nov 2015 20:27:35 +0000 (21:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2015 13:39:22 +0000 (14:39 +0100)
commit853f0cb8603486a8ba17d5b728b52a9b4b029698
treed8b413dc89ff462275ea840552e0f40683487dbf
parent56880a243c85668762dfec69b878862f86be6f04
gpio: syscon: fix a possible NULL dereference

of_match_device could return NULL, and so cause a NULL pointer
dereference later at line 199:
priv->flags = of_id->data;

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