]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irqchip: armada-370-xp: Fix releasing of MSIs
authorNeil Greatorex <neil@fatboyfat.co.uk>
Fri, 18 Apr 2014 12:19:49 +0000 (14:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:13 +0000 (10:28 -0700)
commitecf253254253bebd4ee5456f9cf038ac647002c8
treea10f656e7a37fc667c88457ad6022affdcb4204d
parent12a4de881cd646f8c594e0b70df8ce4c9117969c
irqchip: armada-370-xp: Fix releasing of MSIs

commit ff3c664505bf8a8334bca5045e87b85cfe4d2277 upstream.

Store the value of d->hwirq in a local variable as the real value is wiped out
by calling irq_dispose_mapping. Without this patch, the armada_370_xp_free_msi
function would always free MSI#0, no matter what was passed to it.

Fixes: 31f614edb726fcc4d5aa0f2895fbdec9b04a3ca4 ('irqchip: armada-370-xp: implement MSI support')
Signed-off-by: Neil Greatorex <neil@fatboyfat.co.uk>
Link: https://lkml.kernel.org/r/1397823593-1932-4-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1397823593-1932-4-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-armada-370-xp.c