commit | b3cde198b17f504643cc1eeffc4623f03326f436 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Nov 18 14:35:57 2016 +0300 |
committer | Linus Walleij <linus.walleij@linaro.org> | Tue Nov 22 09:55:33 2016 +0100 |
tree | b8d0477d4146d4a9da16ce266d19caa92a2c78c6 | |
parent | 04d02c7a5ec68debdab8eb71bffe8a9381cb1b1a [diff] |
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>