gpio: 74xx: fix a possible NULL dereference
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 11 Nov 2015 20:27:34 +0000 (21:27 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2015 13:39:17 +0000 (14:39 +0100)
commit56880a243c85668762dfec69b878862f86be6f04
tree9c051d9ff44218f26a21339f72bfa3f62334f86d
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
gpio: 74xx: fix a possible NULL dereference

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

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