summaryrefslogtreecommitdiff
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2020-06-04 22:00:52 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-29 10:18:26 +0200
commitde0d953ee78790adcb2d833e72fec4c3e228ffd7 (patch)
tree63eca2ea883545615f7dbc5a278fce149f25ce05 /drivers/pinctrl
parent52083907ebfa4ee052edbdb340fd8e2830bc49f6 (diff)
downloadlinux-de0d953ee78790adcb2d833e72fec4c3e228ffd7.tar.gz
linux-de0d953ee78790adcb2d833e72fec4c3e228ffd7.tar.bz2
linux-de0d953ee78790adcb2d833e72fec4c3e228ffd7.zip
gpio: arizona: put pm_runtime in case of failure
[ Upstream commit 861254d826499944cb4d9b5a15f5a794a6b99a69 ] Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count if pm_runtime_put is not called in error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20200605030052.78235-1-navid.emamdoost@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/pinctrl')
0 files changed, 0 insertions, 0 deletions