Commit 721954c3 authored by Vinson Lee's avatar Vinson Lee
Browse files

nvfx: Set pointer to NULL after free.

Guard against potential use after free.
parent dc275157
......@@ -996,8 +996,10 @@ nvfx_fragprog_prepare(struct nvfx_context* nvfx, struct nvfx_fpc *fpc)
return TRUE;
if (fpc->r_temp)
if (fpc->r_temp) {
fpc->r_temp = NULL;
return FALSE;
Supports Markdown
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