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

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

parents 5d0c5efa 112b0e01
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -38,7 +38,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) {
@@ -57,7 +56,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)