pinctrl: sunxi: Fix incorrect NULL check
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 29 Jul 2013 08:19:32 +0000 (13:49 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Aug 2013 20:29:39 +0000 (22:29 +0200)
*map should be tested for NULL instead of map as kmalloc pointer
is assigned to it. This also fixes a potential null pointer dereference
bug later in the code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

No differences found