Re: [PATCH] drm/bridge: samsung-dsim: Fix memory leak in error path

From: Luca Ceresoli

Date: Fri Feb 20 2026 - 09:34:09 EST



On Mon, 09 Feb 2026 19:41:14 +0100, Osama Abdelkader wrote:
> In samsung_dsim_host_attach(), drm_bridge_add() is called to add the
> bridge. However, if samsung_dsim_register_te_irq() or
> pdata->host_ops->attach() fails afterwards, the function returns
> without removing the bridge, causing a memory leak.
>
> Fix this by adding proper error handling with goto labels to ensure
> drm_bridge_remove() is called in all error paths. Also ensure that
> samsung_dsim_unregister_te_irq() is called if the attach operation
> fails after the TE IRQ has been registered.
>
> [...]

Applied, thanks!

[1/1] drm/bridge: samsung-dsim: Fix memory leak in error path
commit: 803ec1faf7c1823e6e3b1f2aaa81be18528c9436

Best regards,
--
Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>