ilo: clear writer pointer after unmapping
authorChia-I Wu <olvaffe@gmail.com>
Tue, 14 Oct 2014 00:29:16 +0000 (08:29 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 14 Oct 2014 00:54:25 +0000 (08:54 +0800)
It does not look like an issue now but it is good to be future proof.  Spotted
by Courtney Goeltzenleuchter.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_builder_decode.c

index 470c1ae09898e4a697f86bd303df571e2e2c7376..922acc00cc151fae694356c7bb20fa0c0ed1ac00 100644 (file)
@@ -529,6 +529,7 @@ ilo_builder_writer_decode_items(struct ilo_builder *builder,
    }
 
    intel_bo_unmap(writer->bo);
+   writer->ptr = NULL;
 }
 
 static void