summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2020-06-05 05:00:52 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-06-16 10:38:07 +0200
commit861254d826499944cb4d9b5a15f5a794a6b99a69 (patch)
tree530f7efcb21503f93d4717e5c1ba34f9df7cab9e /samples
parentgpio: arizona: handle pm_runtime_get_sync failure case (diff)
downloadlinux-861254d826499944cb4d9b5a15f5a794a6b99a69.tar.xz
linux-861254d826499944cb4d9b5a15f5a794a6b99a69.zip
gpio: arizona: put pm_runtime in case of failure
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions