diff options
author | Marek Olšák <[email protected]> | 2010-07-19 23:26:17 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-07-20 10:23:54 +0200 |
commit | bdde9d2fcead2e49985f4cd1c73ad4aae5b2878f (patch) | |
tree | e97e96d409eae949ce771accaeaba595f8d39b53 /src/gallium/auxiliary/util/u_mempool.c | |
parent | 87290a383be2eeffef4407eeb17c1070d1122b2f (diff) |
util: mempool: initialize last block's magic number in a page
Diffstat (limited to 'src/gallium/auxiliary/util/u_mempool.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_mempool.c | 1 |
1 files changed, 1 insertions, 0 deletions
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++; |