Skip to content
Commit b18398c1 authored by Boris Brezillon's avatar Boris Brezillon
Browse files

drm/bridge: Fix a NULL pointer dereference in drm_atomic_bridge_chain_check()



drm_atomic_bridge_chain_check() callers can pass a NULL bridge. Let's
bail out before dereferencing the bridge pointer when that happens.

Reported-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Fixes: b86d8955

 ("drm/bridge: Add an ->atomic_check() hook")
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200107113031.435604-1-boris.brezillon@collabora.com
parent 3cacb208
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment