From: Chia-I Wu Date: Tue, 14 Oct 2014 00:29:16 +0000 (+0800) Subject: ilo: clear writer pointer after unmapping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4e2cf84b1f5fd9f52dd1a12947a405a25d1e2137;p=mesa.git 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 --- 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