mirror of
https://github.com/torvalds/linux.git
synced 2025-11-05 11:10:22 +02:00
Currently the pthread allocation for each array item is based on the size
of a pthread_t pointer and should be the size of the pthread_t structure,
so the allocation is under-allocating the correct size. Fix this by using
the size of each element in the pthreads array.
Static analysis cppcheck reported:
tools/testing/radix-tree/regression1.c:180:2: warning: Size of pointer
'threads' used instead of size of its data. [pointerSize]
Link: https://lkml.kernel.org/r/20230727160930.632674-1-colin.i.king@gmail.com
Fixes:
|
||
|---|---|---|
| .. | ||
| generated | ||
| linux | ||
| trace/events | ||
| .gitignore | ||
| benchmark.c | ||
| bitmap.c | ||
| idr-test.c | ||
| iteration_check.c | ||
| iteration_check_2.c | ||
| linux.c | ||
| main.c | ||
| Makefile | ||
| maple.c | ||
| multiorder.c | ||
| regression.h | ||
| regression1.c | ||
| regression2.c | ||
| regression3.c | ||
| regression4.c | ||
| tag_check.c | ||
| test.c | ||
| test.h | ||
| xarray.c | ||