]> git.baikalelectronics.ru Git - kernel.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)
committerJason Cooper <jason@lakedaemon.net>
Sun, 20 Apr 2014 19:14:34 +0000 (19:14 +0000)
commitd4841fd62e4db6e89b40e347a18d6b089339a8ce
tree0ddd1688a206b8ad3998892c555a06eb124a1677
parent2bc7ecb1e8ade24648c377283a852cb6cd10a1c5
irqchip: armada-370-xp: Fix releasing of MSIs

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: c4f97638542cfba54b9551ead9d9a78b677bd54d ('irqchip: armada-370-xp: implement MSI support')
Cc: <stable@vger.kernel.org> # v3.13+
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>
drivers/irqchip/irq-armada-370-xp.c