[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5d88210d-db4c-e171-5d4b-5dffe22d4d48@linaro.org>
Date: Tue, 23 Jun 2020 12:45:58 +0300
From: Stanimir Varbanov <stanimir.varbanov@...aro.org>
To: Dinghao Liu <dinghao.liu@....edu.cn>, kjlu@....edu
Cc: Stanimir Varbanov <stanimir.varbanov@...aro.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org, linux-arm-msm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: venus: vdec: Fix runtime PM imbalance in vdec_open
Hi Dinghao,
This patch is not applicable anymore after [1].
[1] 63342afea65e ("media: venus: vdec: Use pmruntime autosuspend")
On 5/22/20 2:13 PM, 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.
>
> Signed-off-by: Dinghao Liu <dinghao.liu@....edu.cn>
> ---
> drivers/media/platform/qcom/venus/vdec.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c
> index 4ed2628585a1..6f2964130728 100644
> --- a/drivers/media/platform/qcom/venus/vdec.c
> +++ b/drivers/media/platform/qcom/venus/vdec.c
> @@ -1349,7 +1349,7 @@ static int vdec_open(struct file *file)
>
> ret = pm_runtime_get_sync(core->dev_dec);
> if (ret < 0)
> - goto err_free_inst;
> + goto err_put_sync;
>
> ret = vdec_ctrl_init(inst);
> if (ret)
> @@ -1394,7 +1394,6 @@ static int vdec_open(struct file *file)
> vdec_ctrl_deinit(inst);
> err_put_sync:
> pm_runtime_put_sync(core->dev_dec);
> -err_free_inst:
> kfree(inst);
> return ret;
> }
>
--
regards,
Stan
Powered by blists - more mailing lists