Re: [PATCH] EDAC/pci: Fix potential private data leak on release

From: Yazen Ghannam

Date: Wed Nov 25 2026 - 14:44:12 EST


On Wed, Nov 04, 2026 at 10:33:33AM +0800, Guangshuo Li wrote:
> edac_pci_alloc_ctl_info() allocates pvt_info separately from the
> controller, but the instance release callback only frees the
> controller. Release the private allocation there as well, when
> the final instance reference is dropped.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: fb8cd45ca39b ("EDAC/pci: Get rid of the silly one-shot memory allocation in edac_pci_alloc_ctl_info()")
> Signed-off-by: Guangshuo Li <liguangshuo@xxxxxxxxxxxxxxx>
> ---

Reviewed-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>

Thanks,
Yazen