Unverified Commit bde3235c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11885 pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv

parents 28449a69 9a87edeb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ static void pnv_php_disable_irq(struct pnv_php_slot *php_slot,
				bool disable_device)
{
	struct pci_dev *pdev = php_slot->pdev;
	int irq = php_slot->irq;
	u16 ctrl;

	if (php_slot->irq > 0) {
@@ -58,7 +57,7 @@ static void pnv_php_disable_irq(struct pnv_php_slot *php_slot,
		php_slot->wq = NULL;
	}

	if (disable_device || irq > 0) {
	if (disable_device) {
		if (pdev->msix_enabled)
			pci_disable_msix(pdev);
		else if (pdev->msi_enabled)