]> Pileus Git - ~andy/linux/blobdiff - drivers/ata/ahci.c
Merge tag 'pci-v3.14-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[~andy/linux] / drivers / ata / ahci.c
index 7df81576a48929e817a8cbc44e93bbb927947b35..c81d809c111b238e72f65d185add59f5bef4fade 100644 (file)
@@ -1184,8 +1184,10 @@ static int ahci_init_interrupts(struct pci_dev *pdev, unsigned int n_ports,
 
        nvec = rc;
        rc = pci_enable_msi_block(pdev, nvec);
-       if (rc)
+       if (rc < 0)
                goto intx;
+       else if (rc > 0)
+               goto single_msi;
 
        return nvec;