]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
sata_rcar: handle pm_runtime_get_sync failure cases
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Fri, 5 Jun 2020 03:06:43 +0000 (22:06 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commitaeffa55b0776e3cccbc6349c8c26093b03ab578f
tree886306f369cd7118d3ebb30a1410a626241989b3
parentd29d50edcda4151dbe08176735a9d572516f98ff
sata_rcar: handle pm_runtime_get_sync failure cases

BugLink: https://bugs.launchpad.net/bugs/1885942
[ Upstream commit eea1238867205b9e48a67c1a63219529a73c46fd ]

Calling pm_runtime_get_sync increments the counter even in case of
failure, causing incorrect ref count. Call pm_runtime_put if
pm_runtime_get_sync fails.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/ata/sata_rcar.c