Commit 812288bf authored by Patrick Lerda's avatar Patrick Lerda Committed by noblock
Browse files

lima/ppir: fix pointer referenced after a free

Issue detected by valgrind.

Fixes: 92d7ca4b

 ("gallium: add lima driver")
Signed-off-by: default avatarPatrick Lerda <>
Reviewed-by: Qiang Yu's avatarQiang Yu <>
parent bb953de9
...@@ -94,8 +94,9 @@ static bool ppir_lower_dot(ppir_block *block, ppir_node *node) ...@@ -94,8 +94,9 @@ static bool ppir_lower_dot(ppir_block *block, ppir_node *node)
dest->write_mask = u_bit_consecutive(0, num_components); dest->write_mask = u_bit_consecutive(0, num_components);
ppir_node_foreach_pred_safe(node, dep) { ppir_node_foreach_pred_safe(node, dep) {
ppir_node *pred = dep->pred;
ppir_node_remove_dep(dep); ppir_node_remove_dep(dep);
ppir_node_add_dep(&mul->node, dep->pred); ppir_node_add_dep(&mul->node, pred);
} }
ppir_node_add_dep(node, &mul->node); ppir_node_add_dep(node, &mul->node);
Markdown is supported
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