* [PATCH v3 2/3] drm/exynos: remove bridge when component_add fails
2026-04-23 20:06 [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Osama Abdelkader
@ 2026-04-23 20:06 ` Osama Abdelkader
2026-04-29 11:43 ` Luca Ceresoli
2026-05-04 20:47 ` Raphaël Gallais-Pou
2026-04-23 20:06 ` [PATCH v3 3/3] drm/bridge: megachips: remove bridge when irq request fails Osama Abdelkader
` (4 subsequent siblings)
5 siblings, 2 replies; 11+ messages in thread
From: Osama Abdelkader @ 2026-04-23 20:06 UTC (permalink / raw)
To: luca.ceresoli, Inki Dae, Seung-Woo Kim, Kyungmin Park,
David Airlie, Simona Vetter, Krzysztof Kozlowski, Alim Akhtar,
Andrzej Hajda, Hoegeun Kwon, dri-devel, linux-arm-kernel,
linux-samsung-soc, linux-kernel
Cc: Osama Abdelkader, stable
Use devm_drm_bridge_add() so the bridge is released if probe fails after
registration, and drop the manual drm_bridge_remove() in remove().
Check the return value of devm_drm_bridge_add().
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Fixes: 576d72fbfb45 ("drm/exynos: mic: add a bridge at probe")
Cc: stable@vger.kernel.org
---
v3: add Fixes and Cc tags
v2: devm_drm_bridge_add instead of drm_bridge_add + goto remove_bridge
---
drivers/gpu/drm/exynos/exynos_drm_mic.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c
index 29a8366513fa..e68c954ec3e6 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_mic.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c
@@ -423,7 +423,9 @@ static int exynos_mic_probe(struct platform_device *pdev)
mic->bridge.of_node = dev->of_node;
- drm_bridge_add(&mic->bridge);
+ ret = devm_drm_bridge_add(dev, &mic->bridge);
+ if (ret)
+ goto err;
pm_runtime_enable(dev);
@@ -443,12 +445,8 @@ static int exynos_mic_probe(struct platform_device *pdev)
static void exynos_mic_remove(struct platform_device *pdev)
{
- struct exynos_mic *mic = platform_get_drvdata(pdev);
-
component_del(&pdev->dev, &exynos_mic_component_ops);
pm_runtime_disable(&pdev->dev);
-
- drm_bridge_remove(&mic->bridge);
}
static const struct of_device_id exynos_mic_of_match[] = {
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH v3 2/3] drm/exynos: remove bridge when component_add fails
2026-04-23 20:06 ` [PATCH v3 2/3] drm/exynos: remove bridge when " Osama Abdelkader
@ 2026-04-29 11:43 ` Luca Ceresoli
2026-05-04 20:47 ` Raphaël Gallais-Pou
1 sibling, 0 replies; 11+ messages in thread
From: Luca Ceresoli @ 2026-04-29 11:43 UTC (permalink / raw)
To: Osama Abdelkader, Inki Dae, Seung-Woo Kim, Kyungmin Park,
David Airlie, Simona Vetter, Krzysztof Kozlowski, Alim Akhtar,
Andrzej Hajda, Hoegeun Kwon, dri-devel, linux-arm-kernel,
linux-samsung-soc, linux-kernel
Cc: stable
On Thu Apr 23, 2026 at 10:06 PM CEST, Osama Abdelkader wrote:
> Use devm_drm_bridge_add() so the bridge is released if probe fails after
> registration, and drop the manual drm_bridge_remove() in remove().
>
> Check the return value of devm_drm_bridge_add().
>
> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> Fixes: 576d72fbfb45 ("drm/exynos: mic: add a bridge at probe")
> Cc: stable@vger.kernel.org
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH v3 2/3] drm/exynos: remove bridge when component_add fails
2026-04-23 20:06 ` [PATCH v3 2/3] drm/exynos: remove bridge when " Osama Abdelkader
2026-04-29 11:43 ` Luca Ceresoli
@ 2026-05-04 20:47 ` Raphaël Gallais-Pou
1 sibling, 0 replies; 11+ messages in thread
From: Raphaël Gallais-Pou @ 2026-05-04 20:47 UTC (permalink / raw)
To: Osama Abdelkader, luca.ceresoli, Inki Dae, Seung-Woo Kim,
Kyungmin Park, David Airlie, Simona Vetter, Krzysztof Kozlowski,
Alim Akhtar, Andrzej Hajda, Hoegeun Kwon, dri-devel,
linux-arm-kernel, linux-samsung-soc, linux-kernel
Cc: stable
On 4/23/26 22:06, Osama Abdelkader wrote:
> Use devm_drm_bridge_add() so the bridge is released if probe fails after
> registration, and drop the manual drm_bridge_remove() in remove().
>
> Check the return value of devm_drm_bridge_add().
>
> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> Fixes: 576d72fbfb45 ("drm/exynos: mic: add a bridge at probe")
> Cc: stable@vger.kernel.org
> ---
> v3: add Fixes and Cc tags
> v2: devm_drm_bridge_add instead of drm_bridge_add + goto remove_bridge
> ---
Hi,
Reviewed-by: Raphaël Gallais-Pou <rgallaispou@gmail.com>
Best regards,
Raphaël
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 3/3] drm/bridge: megachips: remove bridge when irq request fails
2026-04-23 20:06 [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Osama Abdelkader
2026-04-23 20:06 ` [PATCH v3 2/3] drm/exynos: remove bridge when " Osama Abdelkader
@ 2026-04-23 20:06 ` Osama Abdelkader
2026-04-29 11:48 ` Luca Ceresoli
2026-04-29 11:42 ` [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Luca Ceresoli
` (3 subsequent siblings)
5 siblings, 1 reply; 11+ messages in thread
From: Osama Abdelkader @ 2026-04-23 20:06 UTC (permalink / raw)
To: luca.ceresoli, Peter Senna Tschudin, Ian Ray, Martyn Welch,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Archit Taneja,
dri-devel, linux-kernel
Cc: Osama Abdelkader, stable
If devm_request_threaded_irq() fails after drm_bridge_add(), remove the
bridge before returning.
Keep drm_bridge_add() rather than devm_drm_bridge_add(): registration is
tied to the STDP4028 device while ge_b850v3_register() may complete from
either I2C probe; devm would not unwind the bridge if the other client's
probe fails.
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Fixes: a68ee76f4a28 ("drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: Fix bridge initialization")
Cc: stable@vger.kernel.org
---
v3: add Fixes and Cc tags
v2: IRQ failure path only (explicit drm_bridge_remove)
---
.../drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
index c9e6505cbd88..2d02cc69f237 100644
--- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
+++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
@@ -251,7 +251,6 @@ static void ge_b850v3_lvds_remove(void)
goto out;
drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
-
ge_b850v3_lvds_ptr = NULL;
out:
mutex_unlock(&ge_b850v3_lvds_dev_mutex);
@@ -261,6 +260,7 @@ static int ge_b850v3_register(void)
{
struct i2c_client *stdp4028_i2c = ge_b850v3_lvds_ptr->stdp4028_i2c;
struct device *dev = &stdp4028_i2c->dev;
+ int ret;
/* drm bridge initialization */
ge_b850v3_lvds_ptr->bridge.ops = DRM_BRIDGE_OP_DETECT |
@@ -277,11 +277,15 @@ static int ge_b850v3_register(void)
if (!stdp4028_i2c->irq)
return 0;
- return devm_request_threaded_irq(&stdp4028_i2c->dev,
- stdp4028_i2c->irq, NULL,
- ge_b850v3_lvds_irq_handler,
- IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
- "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
+ ret = devm_request_threaded_irq(&stdp4028_i2c->dev,
+ stdp4028_i2c->irq, NULL,
+ ge_b850v3_lvds_irq_handler,
+ IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
+ "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
+ if (ret)
+ drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
+
+ return ret;
}
static int stdp4028_ge_b850v3_fw_probe(struct i2c_client *stdp4028_i2c)
--
2.43.0
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH v3 3/3] drm/bridge: megachips: remove bridge when irq request fails
2026-04-23 20:06 ` [PATCH v3 3/3] drm/bridge: megachips: remove bridge when irq request fails Osama Abdelkader
@ 2026-04-29 11:48 ` Luca Ceresoli
2026-04-30 20:00 ` Osama Abdelkader
0 siblings, 1 reply; 11+ messages in thread
From: Luca Ceresoli @ 2026-04-29 11:48 UTC (permalink / raw)
To: Osama Abdelkader, Peter Senna Tschudin, Ian Ray, Martyn Welch,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Archit Taneja,
dri-devel, linux-kernel
Cc: stable
On Thu Apr 23, 2026 at 10:06 PM CEST, Osama Abdelkader wrote:
> If devm_request_threaded_irq() fails after drm_bridge_add(), remove the
> bridge before returning.
>
> Keep drm_bridge_add() rather than devm_drm_bridge_add(): registration is
> tied to the STDP4028 device while ge_b850v3_register() may complete from
> either I2C probe; devm would not unwind the bridge if the other client's
> probe fails.
>
> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> Fixes: a68ee76f4a28 ("drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: Fix bridge initialization")
That commit only moved the bug to a slightly different location. The bug
was present even before, since commit fcfa0ddc18ed ("drm/bridge: Drivers
for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)"), so you should update
your Fixes line to point to it.
> Cc: stable@vger.kernel.org
> ---
> v3: add Fixes and Cc tags
> v2: IRQ failure path only (explicit drm_bridge_remove)
> ---
> .../drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 16 ++++++++++------
> 1 file changed, 10 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> index c9e6505cbd88..2d02cc69f237 100644
> --- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> +++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> @@ -251,7 +251,6 @@ static void ge_b850v3_lvds_remove(void)
> goto out;
>
> drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
> -
> ge_b850v3_lvds_ptr = NULL;
> out:
> mutex_unlock(&ge_b850v3_lvds_dev_mutex);
> @@ -261,6 +260,7 @@ static int ge_b850v3_register(void)
> {
> struct i2c_client *stdp4028_i2c = ge_b850v3_lvds_ptr->stdp4028_i2c;
> struct device *dev = &stdp4028_i2c->dev;
> + int ret;
>
> /* drm bridge initialization */
> ge_b850v3_lvds_ptr->bridge.ops = DRM_BRIDGE_OP_DETECT |
> @@ -277,11 +277,15 @@ static int ge_b850v3_register(void)
> if (!stdp4028_i2c->irq)
> return 0;
>
> - return devm_request_threaded_irq(&stdp4028_i2c->dev,
> - stdp4028_i2c->irq, NULL,
> - ge_b850v3_lvds_irq_handler,
> - IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
> - "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
> + ret = devm_request_threaded_irq(&stdp4028_i2c->dev,
> + stdp4028_i2c->irq, NULL,
> + ge_b850v3_lvds_irq_handler,
> + IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
> + "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
> + if (ret)
> + drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
Why not just using devm_drm_bridge_add() and keep everything else clean, as
you did in other patches in the series?
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH v3 3/3] drm/bridge: megachips: remove bridge when irq request fails
2026-04-29 11:48 ` Luca Ceresoli
@ 2026-04-30 20:00 ` Osama Abdelkader
0 siblings, 0 replies; 11+ messages in thread
From: Osama Abdelkader @ 2026-04-30 20:00 UTC (permalink / raw)
To: Luca Ceresoli
Cc: Peter Senna Tschudin, Ian Ray, Martyn Welch, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Archit Taneja,
dri-devel, linux-kernel, stable
Hello Luca,
On Wed, Apr 29, 2026 at 01:48:33PM +0200, Luca Ceresoli wrote:
> On Thu Apr 23, 2026 at 10:06 PM CEST, Osama Abdelkader wrote:
> > If devm_request_threaded_irq() fails after drm_bridge_add(), remove the
> > bridge before returning.
> >
> > Keep drm_bridge_add() rather than devm_drm_bridge_add(): registration is
> > tied to the STDP4028 device while ge_b850v3_register() may complete from
> > either I2C probe; devm would not unwind the bridge if the other client's
> > probe fails.
> >
> > Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> > Fixes: a68ee76f4a28 ("drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: Fix bridge initialization")
>
> That commit only moved the bug to a slightly different location. The bug
> was present even before, since commit fcfa0ddc18ed ("drm/bridge: Drivers
> for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)"), so you should update
> your Fixes line to point to it.
Updated in v4, thanks.
>
>
> > Cc: stable@vger.kernel.org
> > ---
> > v3: add Fixes and Cc tags
> > v2: IRQ failure path only (explicit drm_bridge_remove)
> > ---
> > .../drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 16 ++++++++++------
> > 1 file changed, 10 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> > index c9e6505cbd88..2d02cc69f237 100644
> > --- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> > +++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c
> > @@ -251,7 +251,6 @@ static void ge_b850v3_lvds_remove(void)
> > goto out;
> >
> > drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
> > -
> > ge_b850v3_lvds_ptr = NULL;
> > out:
> > mutex_unlock(&ge_b850v3_lvds_dev_mutex);
> > @@ -261,6 +260,7 @@ static int ge_b850v3_register(void)
> > {
> > struct i2c_client *stdp4028_i2c = ge_b850v3_lvds_ptr->stdp4028_i2c;
> > struct device *dev = &stdp4028_i2c->dev;
> > + int ret;
> >
> > /* drm bridge initialization */
> > ge_b850v3_lvds_ptr->bridge.ops = DRM_BRIDGE_OP_DETECT |
> > @@ -277,11 +277,15 @@ static int ge_b850v3_register(void)
> > if (!stdp4028_i2c->irq)
> > return 0;
> >
> > - return devm_request_threaded_irq(&stdp4028_i2c->dev,
> > - stdp4028_i2c->irq, NULL,
> > - ge_b850v3_lvds_irq_handler,
> > - IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
> > - "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
> > + ret = devm_request_threaded_irq(&stdp4028_i2c->dev,
> > + stdp4028_i2c->irq, NULL,
> > + ge_b850v3_lvds_irq_handler,
> > + IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
> > + "ge-b850v3-lvds-dp", ge_b850v3_lvds_ptr);
> > + if (ret)
> > + drm_bridge_remove(&ge_b850v3_lvds_ptr->bridge);
>
> Why not just using devm_drm_bridge_add() and keep everything else clean, as
> you did in other patches in the series?
Because registration is tied to the STDP4028 device while ge_b850v3_register()
may complete from either I2C probe; so devm would not unwind the bridge if the
other client's probe fails.
>
> Luca
>
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails
2026-04-23 20:06 [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Osama Abdelkader
2026-04-23 20:06 ` [PATCH v3 2/3] drm/exynos: remove bridge when " Osama Abdelkader
2026-04-23 20:06 ` [PATCH v3 3/3] drm/bridge: megachips: remove bridge when irq request fails Osama Abdelkader
@ 2026-04-29 11:42 ` Luca Ceresoli
2026-04-29 13:40 ` Raphaël Gallais-Pou
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Luca Ceresoli @ 2026-04-29 11:42 UTC (permalink / raw)
To: Osama Abdelkader, Alain Volmat, Raphael Gallais-Pou,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, dri-devel, linux-kernel
Cc: stable
On Thu Apr 23, 2026 at 10:06 PM CEST, Osama Abdelkader wrote:
> Use devm_drm_bridge_add() so the bridge is released if probe fails after
> registration, and drop the manual drm_bridge_remove() in remove().
>
> Check the return value of devm_drm_bridge_add().
>
> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> Fixes: d28726efc637 ("drm/sti: hda: add bridge before attaching")
> Cc: stable@vger.kernel.org
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails
2026-04-23 20:06 [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Osama Abdelkader
` (2 preceding siblings ...)
2026-04-29 11:42 ` [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Luca Ceresoli
@ 2026-04-29 13:40 ` Raphaël Gallais-Pou
2026-05-04 20:58 ` Raphael Gallais-Pou
2026-05-05 14:57 ` (subset) " Luca Ceresoli
5 siblings, 0 replies; 11+ messages in thread
From: Raphaël Gallais-Pou @ 2026-04-29 13:40 UTC (permalink / raw)
To: Osama Abdelkader, luca.ceresoli, Alain Volmat, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
dri-devel, linux-kernel
Cc: stable
On 4/23/26 22:06, Osama Abdelkader wrote:
> Use devm_drm_bridge_add() so the bridge is released if probe fails after
> registration, and drop the manual drm_bridge_remove() in remove().
>
> Check the return value of devm_drm_bridge_add().
>
> Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
> Fixes: d28726efc637 ("drm/sti: hda: add bridge before attaching")
> Cc: stable@vger.kernel.org
> ---
Hi Osama,
Acked-by: Raphaël Gallais-Pou <rgallaispou@gmail.com>
Thanks,
Best regards,
Raphaël
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails
2026-04-23 20:06 [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Osama Abdelkader
` (3 preceding siblings ...)
2026-04-29 13:40 ` Raphaël Gallais-Pou
@ 2026-05-04 20:58 ` Raphael Gallais-Pou
2026-05-05 14:57 ` (subset) " Luca Ceresoli
5 siblings, 0 replies; 11+ messages in thread
From: Raphael Gallais-Pou @ 2026-05-04 20:58 UTC (permalink / raw)
To: luca.ceresoli, Alain Volmat, Raphael Gallais-Pou,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, dri-devel, linux-kernel, Osama Abdelkader
Cc: stable
On Thu, 23 Apr 2026 22:06:19 +0200, Osama Abdelkader wrote:
> Use devm_drm_bridge_add() so the bridge is released if probe fails after
> registration, and drop the manual drm_bridge_remove() in remove().
>
> Check the return value of devm_drm_bridge_add().
>
>
Applied, thanks!
[1/3] drm/sti: remove bridge when sti_hda component_add fails
commit: 84ae1840260fece9b6b70d3872b79384bbe5a90b
Best regards,
--
Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: (subset) [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails
2026-04-23 20:06 [PATCH v3 1/3] drm/sti: remove bridge when sti_hda component_add fails Osama Abdelkader
` (4 preceding siblings ...)
2026-05-04 20:58 ` Raphael Gallais-Pou
@ 2026-05-05 14:57 ` Luca Ceresoli
5 siblings, 0 replies; 11+ messages in thread
From: Luca Ceresoli @ 2026-05-05 14:57 UTC (permalink / raw)
To: Alain Volmat, Raphael Gallais-Pou, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
dri-devel, linux-kernel, Osama Abdelkader
Cc: stable
On Thu, 23 Apr 2026 22:06:19 +0200, Osama Abdelkader wrote:
> Use devm_drm_bridge_add() so the bridge is released if probe fails after
> registration, and drop the manual drm_bridge_remove() in remove().
>
> Check the return value of devm_drm_bridge_add().
Applied, thanks!
[2/3] drm/exynos: remove bridge when component_add fails
commit: 26f6654a9a60eb4d241f42a0ec85412e8821480b
Best regards,
--
Luca Ceresoli <luca.ceresoli@bootlin.com>
^ permalink raw reply [flat|nested] 11+ messages in thread