Hi,

On 5/21/20 15:29, Dinghao Liu wrote:
pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Also, call pm_runtime_disable() when pm_runtime_get_sync() returns
an error code.

Signed-off-by: Dinghao Liu<dinghao....@zju.edu.cn>

Thanks for the patch:

Reviewed-by: Sylwester Nawrocki <snawro...@kernel.org>

Reply via email to