Re: [PATCH] PCI: sky1: Fix missing cleanup of ECAM config on probe failure

From: Manivannan Sadhasivam

Date: Tue Mar 24 2026 - 03:36:21 EST



On Tue, 24 Mar 2026 00:41:28 +0800, Felix Gu wrote:
> When devm_kzalloc() for reg_off fails, the code returns -ENOMEM
> without freeing pcie->cfg, which was allocated earlier by
> pci_ecam_create().
>
> Add the missing pci_ecam_free() call to properly release the allocated
> ECAM configuration window on this error path.
>
> [...]

Applied, thanks!

[1/1] PCI: sky1: Fix missing cleanup of ECAM config on probe failure
commit: 72e76b63d6ff6d1f96acccbfc6c118656f63e66a

Best regards,
--
Manivannan Sadhasivam <mani@xxxxxxxxxx>