diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2016-03-09 02:45:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-20 15:42:08 +0900 |
commit | 2e638de516983b9575c845e878e1c41f5bcd2509 (patch) | |
tree | c21472d9d511d3dbbbd5c199e237073244e0b393 /arch | |
parent | e7c6abc464ac71ca734ea57a778872793d51ff29 (diff) |
pinctrl: freescale: imx: fix bogus check of of_iomap() return value
commit 9a4f424531dabd877259ae0071b8bcc4dede9eb5 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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions