commit | 3efa921d5b50c045259f6556262fed77dfecec86 | [log] [tgz] |
---|---|---|
author | Sachin Kamat <sachin.kamat@linaro.org> | Mon Jul 29 13:49:32 2013 +0530 |
committer | Linus Walleij <linus.walleij@linaro.org> | Wed Aug 07 22:29:39 2013 +0200 |
tree | cf61781afd602bd24f316c90066fc956bf00f293 | |
parent | 8a9dcc3ffed66bf6f66c45b11f34de02b0fda4a0 [diff] |
pinctrl: sunxi: Fix incorrect NULL check *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>