(subset) [PATCH] drm/bridge: panel: Prevent ERR_PTR Dereference

Maxime Ripard maxime at cerno.tech
Thu Jan 5 15:02:31 UTC 2023


On Mon, 02 Jan 2023 13:01:23 +0100, Maxime Ripard wrote:
> Commit 5ea6b1702781 ("drm/panel: Add prepare_prev_first flag to
> drm_panel") introduced an access to the bridge pointer in the
> devm_drm_panel_bridge_add_typed() function.
> 
> However, due to the unusual ERR_PTR check when getting that pointer, the
> pointer access is done even though the pointer might be an error
> pointer.
> 
> [...]

Applied to drm/drm-misc (drm-misc-next).

Thanks!
Maxime


More information about the dri-devel mailing list