diff options
Diffstat (limited to 'lib/mesa/src/util/slab.c')
-rw-r--r-- | lib/mesa/src/util/slab.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mesa/src/util/slab.c b/lib/mesa/src/util/slab.c index 4264814ca..4ce0e9a34 100644 --- a/lib/mesa/src/util/slab.c +++ b/lib/mesa/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) { |