summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-07-27 17:09:30 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-08-04 13:03:40 -0700
commitcac7ea57a06016e4914848b707477fb07ee4ae1c (patch)
treedda1268506e3e3eca86d75c67dc3d6cb788fe1ac /mm
parentf443fd5af5dbd531f880d3645d5dd36976cf087f (diff)
radix tree test suite: fix incorrect allocation size for pthreads
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: 1366c37ed84b ("radix tree test harness") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Cc: Konstantin Khlebnikov <koct9i@gmail.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions