[PATCH 1/4] perf: nvidia_t410_cmem_latency: fix cpuhp state leak on init failure

Will Deacon will at kernel.org
Mon Jun 1 08:07:23 PDT 2026


Hi Saurav,

On Thu, May 14, 2026 at 01:06:26AM +0000, Saurav Sachidanand wrote:
> If platform_driver_register() fails, the cpuhp multi-state registered
> by cpuhp_setup_state_multi() is never cleaned up. Add
> cpuhp_remove_multi_state() on the error path, mirroring the cleanup
> in cmem_lat_pmu_exit().
> 
> Fixes: 429b7638b2df ("perf: add NVIDIA Tegra410 CPU Memory Latency PMU")
> Signed-off-by: Saurav Sachidanand <sauravsc at amazon.com>
> ---
>  drivers/perf/nvidia_t410_cmem_latency_pmu.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Do you plan to respin this series, taking into account the comments from
Besar and Sashiko? If you do, please include a cover letter next time as
well.

Cheers,

Will



More information about the linux-arm-kernel mailing list