]> err.no Git - linux-2.6/commitdiff
sata_mv: fix pci_enable_msi() error handling
authorTejun Heo <htejun@gmail.com>
Sat, 24 Feb 2007 06:12:31 +0000 (15:12 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 25 Feb 2007 01:52:12 +0000 (20:52 -0500)
intx should be turned on when pci_enable_msi() fails not when it
succeeds.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_mv.c

index 06867b92c9c7a4a28af4e321e3cbb363c463f199..d724bc799b1aa4ebf66a13b4c710298fccdb5ea8 100644 (file)
@@ -2347,7 +2347,7 @@ static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
                return rc;
 
        /* Enable interrupts */
-       if (msi && !pci_enable_msi(pdev))
+       if (msi && pci_enable_msi(pdev))
                pci_intx(pdev, 1);
 
        mv_dump_pci_cfg(pdev, 0x68);