Skip to content

Commit 223842c

Browse files
sdirkwinkeltomba
authored andcommitted
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: 1836fd5 ("drm: xlnx: zynqmp_dpsub: Minimize usage of global flag") Signed-off-by: Steffen Dirkwinkel <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 28edaac commit 223842c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xlnx/zynqmp_disp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,9 @@ static void zynqmp_disp_layer_release_dma(struct zynqmp_disp *disp,
12001200
{
12011201
unsigned int i;
12021202

1203+
if (!layer->info)
1204+
return;
1205+
12031206
for (i = 0; i < layer->info->num_channels; i++) {
12041207
struct zynqmp_disp_layer_dma *dma = &layer->dmas[i];
12051208

0 commit comments

Comments
 (0)