Re: [PATCH v2] cpufreq: mediatek: Fix potential deadlock problem in mtk_cpufreq_set_target

From: Viresh Kumar
Date: Tue May 10 2022 - 05:12:23 EST


On 10-05-22, 17:05, Wan Jiabing wrote:
> Fix following coccichek error:
> ./drivers/cpufreq/mediatek-cpufreq.c:199:2-8: preceding lock on line
> ./drivers/cpufreq/mediatek-cpufreq.c:208:2-8: preceding lock on line
>
> mutex_lock is acquired but not released before return.
> Use 'goto out' to help releasing the mutex_lock.
>
> Fixes: c210063b40ac ("cpufreq: mediatek: Add opp notification support")
> Signed-off-by: Wan Jiabing <wanjiabing@xxxxxxxx>

You should have added the review tag you received.

Applied. Thanks.

--
viresh