[RFT PATCH] net: axienet: Fix devm_ioremap_resource return value check

David Miller davem at davemloft.net
Thu Jul 9 21:44:05 PDT 2015


From: Krzysztof Kozlowski <k.kozlowski.k at gmail.com>
Date: Thu,  9 Jul 2015 22:21:20 +0900

> 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 at gmail.com>
> Cc: <stable at vger.kernel.org>
> Fixes: 46aa27df8853 ("net: axienet: Use devm_* calls")

Applied, thanks.



More information about the linux-arm-kernel mailing list