]> www.infradead.org Git - users/hch/configfs.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)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jun 2020 03:14:50 +0000 (21:14 -0600)
commiteea1238867205b9e48a67c1a63219529a73c46fd
tree910173c7c1fad903159241f9bae822a22a712930
parent6929f71e46bdddbf1c4d67c2728648176c67c555
sata_rcar: handle pm_runtime_get_sync failure cases

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>
drivers/ata/sata_rcar.c