Re: [PATCH] media: platform: s3c-camif: Fix runtime PM imbalance on error
From: Sylwester Nawrocki
Date: Sun May 24 2020 - 15:15:40 EST
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.liu@xxxxxxxxxx>
Thanks for the patch:
Reviewed-by: Sylwester Nawrocki <snawrocki@xxxxxxxxxx>