linux/drivers/gpu/drm/bridge
Osama Abdelkader 1a0f69e3c2 drm/bridge: synopsys: dw-dp: fix error paths of dw_dp_bind
Fix several issues in dw_dp_bind() error handling:

1. Missing return after drm_bridge_attach() failure - the function
   continued execution instead of returning an error.

2. Resource leak: drm_dp_aux_register() is not a devm function, so
   drm_dp_aux_unregister() must be called on all error paths after
   aux registration succeeds. This affects errors from:
   - drm_bridge_attach()
   - phy_init()
   - devm_add_action_or_reset()
   - platform_get_irq()
   - devm_request_threaded_irq()

3. Bug fix: platform_get_irq() returns the IRQ number or a negative
   error code, but the error path was returning ERR_PTR(ret) instead
   of ERR_PTR(dp->irq).

Use a goto label for cleanup to ensure consistent error handling.

Fixes: 86eecc3a9c ("drm/bridge: synopsys: Add DW DPTX Controller support library")
Cc: stable@vger.kernel.org

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260102155553.13243-1-osama.abdelkader@gmail.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2026-01-20 15:19:50 +01:00
..
adv7511 drm/bridge: write full Audio InfoFrame 2025-09-09 17:34:39 +03:00
analogix drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
cadence drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
imx drm/bridge: imx: add driver for HDMI TX Parallel Audio Interface 2025-09-29 09:46:04 +08:00
synopsys drm/bridge: synopsys: dw-dp: fix error paths of dw_dp_bind 2026-01-20 15:19:50 +01:00
Kconfig drm/bridge: it6505: Use SHA-1 library instead of crypto_shash 2025-09-04 11:27:45 +08:00
Makefile
aux-bridge.c
aux-hpd-bridge.c
chipone-icn6211.c
chrontel-ch7033.c
cros-ec-anx7688.c
display-connector.c drm/bridge: display-connector: don't set OP_DETECT for DisplayPorts 2025-08-15 18:29:05 +03:00
fsl-ldb.c
ite-it6263.c drm/bridge: ite-it6263: Support HDMI vendor specific infoframe 2025-09-09 17:34:39 +03:00
ite-it6505.c drm/bridge: it6505: Use SHA-1 library instead of crypto_shash 2025-09-04 11:27:45 +08:00
ite-it66121.c drm/bridge: it66121: Add minimal it66122 support 2025-11-21 15:48:48 +01:00
lontium-lt8912b.c
lontium-lt9211.c drm/bridge: lt9211: Drop check for last nibble of version register 2025-10-11 19:38:20 +03:00
lontium-lt9611.c
lontium-lt9611uxc.c
lvds-codec.c
megachips-stdpxxxx-ge-b850v3-fw.c
microchip-lvds.c
nwl-dsi.c
nwl-dsi.h
nxp-ptn3460.c
panel.c
parade-ps8622.c
parade-ps8640.c
samsung-dsim.c drm/bridge: samsung-dsim: add driver support for exynos7870 DSIM bridge 2025-09-15 19:55:15 +09:00
sii902x.c drm/bridge: sii902x: Fix HDMI detection with DRM_BRIDGE_ATTACH_NO_CONNECTOR 2025-11-21 15:59:21 +01:00
sii9234.c
sil-sii8620.c
sil-sii8620.h
simple-bridge.c drm/bridge: simple: add ASL CS5263 DP-to-HDMI bridge 2025-11-24 17:54:56 +01:00
ssd2825.c
tc358762.c
tc358764.c
tc358767.c
tc358768.c
tc358775.c
tda998x_drv.c
thc63lvd1024.c
ti-dlpc3433.c
ti-sn65dsi83.c drm/bridge: ti-sn65dsi83: ignore PLL_UNLOCK errors 2025-12-05 10:00:17 +01:00
ti-sn65dsi86.c drm/bridge: ti-sn65dsi86: Add support for DisplayPort mode with HPD 2025-09-23 08:16:45 -07:00
ti-tdp158.c
ti-tfp410.c
ti-tpd12s015.c
waveshare-dsi.c drm/bridge: waveshare-dsi: Fix bailout for devm_drm_bridge_alloc() 2025-09-19 10:52:45 +08:00