-
Vladimir Zapolskiy authored
BugLink: http://bugs.launchpad.net/bugs/1573034 commit 9a4f4245 upstream. 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: 26d8cde5 ("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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Tim Gardner <tim.gardner@canonical.com>
6b589fff