From: Marek Olšák Date: Mon, 19 Jul 2010 21:26:17 +0000 (+0200) Subject: util: mempool: initialize last block's magic number in a page X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdde9d2fcead2e49985f4cd1c73ad4aae5b2878f;p=mesa.git util: mempool: initialize last block's magic number in a page --- diff --git a/src/gallium/auxiliary/util/u_mempool.c b/src/gallium/auxiliary/util/u_mempool.c index 0ce4b6cf1a7..84e2a34acc6 100644 --- a/src/gallium/auxiliary/util/u_mempool.c +++ b/src/gallium/auxiliary/util/u_mempool.c @@ -69,6 +69,7 @@ static void util_mempool_add_new_page(struct util_mempool *pool) block = util_mempool_get_block(pool, page, pool->num_blocks-1); block->next_free = pool->first_free; + block->magic = UTIL_MEMPOOL_MAGIC; pool->first_free = util_mempool_get_block(pool, page, 0); pool->num_pages++;