diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2016-03-09 02:45:36 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-30 10:57:52 +0200 |
commit | 9a4f424531dabd877259ae0071b8bcc4dede9eb5 (patch) | |
tree | be0a10359a0d1672f1c1459e5a944e74d14ab3e5 /scripts/asn1_compiler.c | |
parent | 5e7515ba78fff2f5407eaa2f97c1d5c07801ac3d (diff) |
pinctrl: freescale: imx: fix bogus check of of_iomap() return value
On error path of_iomap() returns NULL, hence IS_ERR() check is invalid
and may cause a NULL pointer dereference, the change fixes this
problem.
While we are here invert a device node check to simplify the code.
Fixes: 26d8cde5260b ("pinctrl: freescale: imx: add shared input select reg support")
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'scripts/asn1_compiler.c')
0 files changed, 0 insertions, 0 deletions