gpio: etraxfs: Fix devm_ioremap_resource return value check
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Thu, 9 Jul 2015 13:19:53 +0000 (22:19 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 17 Jul 2015 07:48:00 +0000 (09:48 +0200)
commit015403145a65f0a0f7c4d9badfb12759349d1e13
tree6e9e3abac1c869c9e15b12af0bac4237eff28328
parent72858602e167ea2d7487337bac279beec7a99c84
gpio: etraxfs: Fix devm_ioremap_resource return value check

Value returned by devm_ioremap_resource() was checked for non-NULL but
devm_ioremap_resource() returns IOMEM_ERR_PTR, not NULL. In case of
error this could lead to dereference of ERR_PTR.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-etraxfs.c