Re: [PATCH] drm/sti: hda: Fix bridge leak on component_add() failure
From: Luca Ceresoli
Date: Mon Apr 27 2026 - 09:07:51 EST
Hello Myeonghun,
On Fri Apr 24, 2026 at 2:11 PM CEST, Myeonghun Pak wrote:
> sti_hda_probe() registers its bridge before adding the component. If
> component_add() fails, probe returns the error directly and leaves the
> bridge registered.
>
> The remove callback unregisters the bridge, but remove is only called
> after a successful probe. Remove the bridge locally when component_add()
> fails so the probe error path matches the successful-probe remove path.
>
> Signed-off-by: Myeonghun Pak <mhun512@xxxxxxxxx>
Duplicate of [0]?
[0] https://lore.kernel.org/all/20260423200622.325076-1-osama.abdelkader@xxxxxxxxx/
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com