[PATCH] ARM: mvebu: Fix kernel hang in mvebu_soc_id_init() when of_iomap failed

Jason Cooper jason at lakedaemon.net
Mon Jan 20 15:16:21 EST 2014


On Mon, Jan 20, 2014 at 03:59:50PM +0100, Gregory CLEMENT wrote:
> When pci_base is accessed whereas it has not been properly mapped by
> of_iomap() the kernel hang. The check of this pointer made an improper
> use of IS_ERR() instead of comparing to NULL. This patch fix this
> issue.
> 
> Signed-off-by: Gregory CLEMENT <gregory.clement at free-electrons.com>
> Reported-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
> ---
> Jason,
> 
> As this is a fix on a fix which should be ported to the stable branch, I
> don't know how to handle the cc:stable flag

No problem, I added it.

>  arch/arm/mach-mvebu/mvebu-soc-id.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to mvebu/fixes.

thx,

Jason.



More information about the linux-arm-kernel mailing list