]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: img: Call pm_runtime_put() in pm_runtime_get_sync() failed case
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Mon, 1 Jun 2020 07:11:16 +0000 (02:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:29 +0000 (17:48 +0200)
commit0a8287278abc629be354db88450909c41e370feb
tree4306752a8061c2cb74993e0f5c79f8dcfbaec646
parent5b2a4f514370ec81a5b76c71b0f870c239f350c0
pwm: img: Call pm_runtime_put() in pm_runtime_get_sync() failed case

[ Upstream commit ca162ce98110b98e7d97b7157328d34dcfdd40a9 ]

Even in failed case of pm_runtime_get_sync(), the usage_count is
incremented. In order to keep the usage_count with correct value call
appropriate pm_runtime_put().

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-img.c