Searched hist:b3cde198b17f504643cc1eeffc4623f03326f436 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/pinctrl/sunxi/ ! |
H A D | pinctrl-sunxi.c | b3cde198b17f504643cc1eeffc4623f03326f436 Fri Nov 18 11:35:57 UTC 2016 Dan Carpenter <dan.carpenter@oracle.com> pinctrl: sunxi: Testing the wrong variable
Smatch complains that we dereference "map" before testing it for NULL which is true. We should be testing "*map" instead. Also on the error path, we should free *map and set it to NULL.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
|