mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
freedreno/ir3: fix potential null ptr deref
Fix potential segfault in debug code. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
c99f09f4be
commit
c06afcede2
1 changed files with 2 additions and 1 deletions
|
|
@ -322,7 +322,8 @@ static void ir3_block_dump(struct ir3_dump_ctx *ctx,
|
|||
|
||||
/* draw instruction graph: */
|
||||
for (i = 0; i < block->noutputs; i++)
|
||||
dump_instr(ctx, block->outputs[i]);
|
||||
if (block->outputs[i])
|
||||
dump_instr(ctx, block->outputs[i]);
|
||||
|
||||
/* draw outputs: */
|
||||
fprintf(ctx->f, "output%lx [shape=record,label=\"outputs", PTRID(block));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue