Skip to content

Commit

Permalink
[SCSI] megaraid_sas: Disable interrupts/free_irq() in megasas_shutdown()
Browse files Browse the repository at this point in the history
The following patch for megaraid_sas disables interrupts and
free_irq() in megasas_shutdown().

Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
  • Loading branch information
adam radford authored and James Bottomley committed May 24, 2011
1 parent 7e70e73 commit 46fd256
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/scsi/megaraid/megaraid_sas_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -4526,6 +4526,11 @@ static void megasas_shutdown(struct pci_dev *pdev)
instance->unload = 1;
megasas_flush_cache(instance);
megasas_shutdown_controller(instance, MR_DCMD_CTRL_SHUTDOWN);
instance->instancet->disable_intr(instance->reg_set);
free_irq(instance->msi_flag ? instance->msixentry.vector :
instance->pdev->irq, instance);
if (instance->msi_flag)
pci_disable_msix(instance->pdev);
}

/**
Expand Down

0 comments on commit 46fd256

Please sign in to comment.