Commit 7ee2413c authored by Tony Battersby's avatar Tony Battersby Committed by James Bottomley

[SCSI] sym53c8xx: fix free_irq() regression

The following commit changed the pointer passed to request_irq(), but
failed to change the pointer passed to free_irq():

commit 99c9e0a1
Author: Matthew Wilcox <matthew@wil.cx>
Date:   Fri Oct 5 15:55:12 2007 -0400

    [SCSI] sym53c8xx: Make interrupt handler capable of returning IRQ_NONE

    ...

The result is that free_irq() doesn't actually take any action.  This
patch fixes it.
Signed-off-by: default avatarTony Battersby <tonyb@cybernetics.com>
Acked-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 75b8c133
...@@ -1243,7 +1243,7 @@ static void sym_free_resources(struct sym_hcb *np, struct pci_dev *pdev) ...@@ -1243,7 +1243,7 @@ static void sym_free_resources(struct sym_hcb *np, struct pci_dev *pdev)
* Free O/S specific resources. * Free O/S specific resources.
*/ */
if (pdev->irq) if (pdev->irq)
free_irq(pdev->irq, np); free_irq(pdev->irq, np->s.host);
if (np->s.ioaddr) if (np->s.ioaddr)
pci_iounmap(pdev, np->s.ioaddr); pci_iounmap(pdev, np->s.ioaddr);
if (np->s.ramaddr) if (np->s.ramaddr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment