[PATCH] drm/imx: parallel-display: check return value of devm_drm_bridge_add() in imx_pd_probe()

Luca Ceresoli luca.ceresoli at bootlin.com
Thu Feb 5 01:15:31 PST 2026


On Wed Feb 4, 2026 at 10:06 AM CET, Chen Ni wrote:
> Return the value of devm_drm_bridge_add() in order to propagate the
> error properly, if it fails due to resource allocation failure or bridge
> registration failure.
>
> This ensures that the probe function fails safely rather than proceeding
> with a potentially incomplete bridge setup.
>
> Fixes: bf7e97910b9f ("drm/imx: parallel-display: add the bridge before attaching it")
> Signed-off-by: Chen Ni <nichen at iscas.ac.cn>

Reviewed-by: Luca Ceresoli <luca.ceresoli at bootlin.com>

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the linux-arm-kernel mailing list