intel: Clear pointer after unmapping buffer
diff --git a/icd/intel/cmd_decode.c b/icd/intel/cmd_decode.c
index cc1e1f8..bc8904c 100644
--- a/icd/intel/cmd_decode.c
+++ b/icd/intel/cmd_decode.c
@@ -525,6 +525,7 @@
     }
 
     intel_bo_unmap(writer->bo);
+    writer->ptr = NULL;
 }
 
 static void cmd_writer_decode(struct intel_cmd *cmd,