irqchip/mxs: Panic if ioremap or domain creation fails
authorOleksij Rempel <linux@rempel-privat.de>
Mon, 12 Oct 2015 19:15:30 +0000 (21:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 Oct 2015 07:37:47 +0000 (09:37 +0200)
commite59a8451be1162d5a10a33e40092f1796cb8fdca
tree4ded8d04e8e213d338680b29bc0eb9f79a6371d1
parente7a46c818564329f977f8fa157b5e9e1d0d83012
irqchip/mxs: Panic if ioremap or domain creation fails

Current code will only warn and then dereference the NULL pointer or
continue, which results in a fatal NULL pointer dereference later.

If the initialization fails, the machine is unusable, so panic right
away.

[ tglx: Massaged changelog and picked the irqdomain panic from the
   next patch]

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Tested-by: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: marc.zyngier@arm.com
Cc: jason@lakedaemon.net
Link: http://lkml.kernel.org/r/1444677334-12242-2-git-send-email-linux@rempel-privat.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-mxs.c