Re: [PATCH 1/4] perf: nvidia_t410_cmem_latency: fix cpuhp state leak on init failure
From: Will Deacon
Date: Mon Jun 01 2026 - 11:14:55 EST
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@xxxxxxxxxx>
> ---
> 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