Skip to content

Commit 332c42a

Browse files
samorris-lexhtejun
authored andcommitted
ata: ahci: rpm_put port on port_stop to match rpm_get in port_start
This change balances out the final ahci_port_resume in port_start to ensure reference counts are correct after port stop. Signed-off-by: Samuel Morris <samorris@lexmark.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 9ffc59d commit 332c42a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/ata/libahci.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,8 @@ static void ahci_port_stop(struct ata_port *ap)
24362436
* re-enabling INTx.
24372437
*/
24382438
writel(1 << ap->port_no, host_mmio + HOST_IRQ_STAT);
2439+
2440+
ahci_rpm_put_port(ap);
24392441
}
24402442

24412443
void ahci_print_info(struct ata_host *host, const char *scc_s)

0 commit comments

Comments
 (0)