Explorar o código

ahci: disable correct irq for dummy ports

irq already contains the interrupt number for the port, don't add the
port index to it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: d684a90d38e2 ("ahci: per-port msix support")
Cc: stable@vger.kernel.org v4.5+
Christoph Hellwig %!s(int64=9) %!d(string=hai) anos
pai
achega
9b4b3f6a06
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/ata/libahci.c

+ 1 - 1
drivers/ata/libahci.c

@@ -2524,7 +2524,7 @@ static int ahci_host_activate_multi_irqs(struct ata_host *host,
 
 		/* Do not receive interrupts sent by dummy ports */
 		if (!pp) {
-			disable_irq(irq + i);
+			disable_irq(irq);
 			continue;
 		}