gpio-sta2x11: Fix potential NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 12 Jun 2013 04:02:45 +0000 (09:32 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 08:26:34 +0000 (10:26 +0200)
devm_kzalloc can return NULL. Check for it before dereferencing.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

No differences found