summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorLiam R. Howlett (Google) <liam@infradead.org>2026-10-19 23:31:28 -0400
committerAndrew Morton <akpm@linux-foundation.org>2026-10-24 01:56:42 -0700
commitc9ed13789061af00d9239f9fab8e246adbed2076 (patch)
tree0d3440aec5d8483cf31b405e8d40b18cbafcb538 /tools/lib/python/kdoc/python_version.py
parent5695abc4e742b947f586bfb6a080a80ad9957e5d (diff)
tools/testing/shared: catch a failed posix_memalign()
posix_memalign() returns zero or a positive error number and never sets errno, so the checks for a negative return in kmem_cache_alloc_lru() and kmem_cache_alloc_bulk() is not possible. A failed aligned allocation carries on with the pointer unset, into the constructor or the memset(). Test for any non-zero return. Link: https://lore.kernel.org/20261020033128.1934349-1-liam@infradead.org Fixes: 8801c35c3672 ("tools: fix -Wunused-result in linux.c") Signed-off-by: Liam R. Howlett (Google) <liam@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: Vishal Moola (Fractile) <vishal.moola@gmail.com> Reviewed-by: SJ Park <sj@kernel.org> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Vlastimil Babka <vbabka@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions