Re: [PATCH] irqchip/mxs: fix error check of of_io_request_and_map()

From: Shawn Guo
Date: Thu Mar 31 2016 - 02:40:20 EST


On Wed, Mar 09, 2016 at 03:21:40AM +0200, Vladimir Zapolskiy wrote:
> The of_io_request_and_map() returns a valid pointer in iomem region or
> ERR_PTR(), check for NULL always fails and may cause a NULL pointer
> dereference on error path.
>
> Fixes: 25e34b44313b ("irqchip/mxs: Prepare driver for hardware with different offsets")
> Signed-off-by: Vladimir Zapolskiy <vz@xxxxxxxxx>

Acked-by: Shawn Guo <shawnguo@xxxxxxxxxx>