forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/tools/testing/radix-tree/regression1.c
....@@ -177,7 +177,7 @@
177177 nr_threads = 2;
178178 pthread_barrier_init(&worker_barrier, NULL, nr_threads);
179179
180
- threads = malloc(nr_threads * sizeof(pthread_t *));
180
+ threads = malloc(nr_threads * sizeof(*threads));
181181
182182 for (i = 0; i < nr_threads; i++) {
183183 arg = i;