Skip to content
Commit 861254d8 authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Linus Walleij
Browse files

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: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200605030052.78235-1-navid.emamdoost@gmail.com
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e6f390a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment