drm: xlnx: zynqmp_disp: layer may be null while releasing
authorSteffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Mon, 28 Oct 2024 13:39:40 +0000 (14:39 +0100)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 30 Oct 2024 12:22:41 +0000 (14:22 +0200)
commit223842c7702b52846b1c5aef8aca7474ec1fd29b
tree1d15d9fc1af934289bd549b6895777c9a9f1393e
parent28edaacb821c69241f6c0be6bbd29f7145f1b44f
drm: xlnx: zynqmp_disp: layer may be null while releasing

layer->info can be null if we have an error on the first layer in
zynqmp_disp_create_layers

Fixes: 1836fd5ed98d ("drm: xlnx: zynqmp_dpsub: Minimize usage of global flag")
Signed-off-by: Steffen Dirkwinkel <s.dirkwinkel@beckhoff.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241028133941.54264-1-lists@steffen.cc
drivers/gpu/drm/xlnx/zynqmp_disp.c