Re: [PATCH v2] misc: lan966x_pci: depopulate children on populate failure

From: Greg Kroah-Hartman

Date: Mon Jun 22 2026 - 14:46:40 EST


On Mon, Jun 22, 2026 at 11:33:28PM +0800, Pengpeng Hou wrote:
> lan966x_pci_probe() may create child platform devices before
> of_platform_default_populate() returns an error. The error path unloads
> the overlay immediately, but it does not depopulate any children that
> were already created from overlay nodes.
>
> Depopulate the children before unloading the overlay when population
> fails.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> Reviewed-by: Herve Codina <herve.codina@xxxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>

The test robot did not report this problem :(

thanks,

greg k-h