Skip to content

Commit 6e154f9

Browse files
Merge pull request #1502 from lplewa/ctl_lock
add missing lock in ctl
2 parents 7cc203e + ed02ce3 commit 6e154f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pool/pool_disjoint.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ static const umf_ctl_node_t CTL_NODE(stats)[] = {
262262
} \
263263
\
264264
bucket_t *bucket = pool->buckets[idx]; \
265+
utils_mutex_lock(&bucket->bucket_lock); \
265266
*(size_t *)arg = bucket->MEMBER; \
267+
utils_mutex_unlock(&bucket->bucket_lock); \
266268
\
267269
return UMF_RESULT_SUCCESS; \
268270
}

0 commit comments

Comments
 (0)