Re: [PATCH v2 0/2] cpufreq: mediatek-hw: Fix initialization resource leaks

From: Viresh Kumar

Date: Thu Nov 19 2026 - 06:02:56 EST


On 19-11-26, 13:28, Haoxiang Li wrote:
> This series fixes two resource cleanup omissions introduced by commit
> d776790a5536 ("cpufreq: mediatek-hw: Fix double devm_remap in hotplug case").
>
> Patch 1 releases the resources when the CPUFreq hardware fails to become
> enabled.
>
> Following Zhongqiu's suggestion during review, patch 2 handles the
> additional failure path where mtk_cpu_create_freq_table() fails after
> the registers have been mapped and the memory region requested.
> Thanks to Zhongqiu for pointing out this omission and suggesting a
> separate fix.
>
> Changes in v2:
> - Keep the original hardware enable failure fix unchanged as patch 1.
> - Add patch 2 to clean up on frequency table creation failure, using
> the same Fixes tag.
>
> Haoxiang Li (2):
> cpufreq: mediatek-hw: Release resources when hardware enable fails
> cpufreq: mediatek-hw: Clean up on frequency table creation failure

Applied. Thanks.

--
viresh