OSDN Git Service

ata: ahci: rpm_put port on port_stop to match rpm_get in port_start
authorSamuel Morris <samorris@lexmark.com>
Tue, 29 May 2018 10:06:11 +0000 (10:06 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 18 Jun 2018 17:58:42 +0000 (10:58 -0700)
commit332c42a9ff7f75a4d9dd263a6e5da32b45de12ec
tree4e06ce77ee39591c6a5965eed816fda7c3b2c6f2
parent9ffc59d57228d74809700be6f7ecb1db10292f05
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>
drivers/ata/libahci.c