Skip to content

Commit

Permalink
ahci: disable correct irq for dummy ports
Browse files Browse the repository at this point in the history
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: d684a90 ("ahci: per-port msix support")
Cc: stable@vger.kernel.org v4.5+
  • Loading branch information
Christoph Hellwig authored and htejun committed Aug 11, 2016
1 parent 29b4817 commit 9b4b3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9b4b3f6

Please sign in to comment.