]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 17 Jan 2017 14:21:56 +0000 (14:21 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 17 Jan 2017 14:41:51 +0000 (08:41 -0600)
commitdec210569b3c8144f0cdc98af3ecf3665c87fa66
treef2ab6cdb65ddacdf2e7c019cd55e353f0c16b400
parentd9f62ebe03e429b661bb33f06ae3d35dba7c1ab4
PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling

The conversion to the new hotplug state machine introduced a regression
where a successful hotplug registration would be treated as an error,
effectively disabling the MSI driver forever.

Fix it by doing the proper check on the return value.

Fixes: 02be54d2c241 ("PCI/xgene-msi: Convert to hotplug state machine")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Duc Dang <dhdang@apm.com>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: stable@vger.kernel.org
drivers/pci/host/pci-xgene-msi.c