[PATCH] cpufreq: mediatek: fix device leak on probe failure

Viresh Kumar viresh.kumar at linaro.org
Mon Sep 29 02:11:07 PDT 2025


On 09-09-25, 09:38, Johan Hovold wrote:
> Make sure to drop the reference to the cci device taken by
> of_find_device_by_node() on probe failure (e.g. probe deferral).
> 
> Fixes: 0daa47325bae ("cpufreq: mediatek: Link CCI device to CPU")
> Cc: Jia-Wei Chang <jia-wei.chang at mediatek.com>
> Cc: Rex-BC Chen <rex-bc.chen at mediatek.com>
> Signed-off-by: Johan Hovold <johan at kernel.org>
> ---
>  drivers/cpufreq/mediatek-cpufreq.c | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)

Applied. Thanks.

-- 
viresh



More information about the Linux-mediatek mailing list