projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: hashtable: make hashing prototypes match
[mesa.git]
/
src
/
util
/
slab.c
diff --git
a/src/util/slab.c
b/src/util/slab.c
index 4264814cabc926c623f47b5b1a9b70f5578f3664..4ce0e9a34852ca08d473c8585a322a71b93fdc5b 100644
(file)
--- a/
src/util/slab.c
+++ b/
src/util/slab.c
@@
-140,6
+140,9
@@
void slab_create_child(struct slab_child_pool *pool,
*/
void slab_destroy_child(struct slab_child_pool *pool)
{
+ if (!pool->parent)
+ return; /* the slab probably wasn't even created */
+
mtx_lock(&pool->parent->mutex);
while (pool->pages) {