aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/ahci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index dc2756fb6f33..3c5f35ef7e55 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1170,8 +1170,10 @@ static int ahci_init_interrupts(struct pci_dev *pdev, unsigned int n_ports,
1170 1170
1171 nvec = rc; 1171 nvec = rc;
1172 rc = pci_enable_msi_block(pdev, nvec); 1172 rc = pci_enable_msi_block(pdev, nvec);
1173 if (rc) 1173 if (rc < 0)
1174 goto intx; 1174 goto intx;
1175 else if (rc > 0)
1176 goto single_msi;
1175 1177
1176 return nvec; 1178 return nvec;
1177 1179