irqchip/irq-alpine-msi: Release the correct domain on error
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 11 Mar 2016 08:14:43 +0000 (11:14 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 11 Mar 2016 09:06:55 +0000 (10:06 +0100)
commit143d36a33b4d59a56bb8e913a17a105578fd3237
tree6bcdbecd1ea77ef89c7fb785575ba8e9b7b76064
parentedf8fcdc6b254236be005851af35ea5e826e7e09
irqchip/irq-alpine-msi: Release the correct domain on error

The "msi_domain" variable is NULL here so it leads to a NULL dereference.  It
looks like we actually intended to free "middle_domain".

Fixes: e6b78f2c3e14 ('irqchip: Add the Alpine MSIX interrupt controller')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
Cc: kernel-janitors@vger.kernel.org
Cc: Tsahee Zidenberg <tsahee@annapurnalabs.com>
Link: http://lkml.kernel.org/r/20160311081442.GE31887@mwanda
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-alpine-msi.c