From 4e2cf84b1f5fd9f52dd1a12947a405a25d1e2137 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 14 Oct 2014 08:29:16 +0800 Subject: [PATCH] ilo: clear writer pointer after unmapping 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 --- src/gallium/drivers/ilo/ilo_builder_decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/ilo/ilo_builder_decode.c b/src/gallium/drivers/ilo/ilo_builder_decode.c index 470c1ae0989..922acc00cc1 100644 --- a/src/gallium/drivers/ilo/ilo_builder_decode.c +++ b/src/gallium/drivers/ilo/ilo_builder_decode.c @@ -529,6 +529,7 @@ ilo_builder_writer_decode_items(struct ilo_builder *builder, } intel_bo_unmap(writer->bo); + writer->ptr = NULL; } static void -- 2.30.2