summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorKees Cook <kees+treewide@kernel.org>2026-09-17 14:11:38 -0700
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-09-25 22:35:07 -0400
commitd0105247ca7e281aac61216d8a641576200f262f (patch)
tree289693e6147c82a154388e87f2a28fd9e21281c7 /tools/lib/python/kdoc/python_version.py
parent7dec5cedf7b248036da606c16f9f3f9aa350b417 (diff)
downloadlinux-next-d0105247ca7e281aac61216d8a641576200f262f.tar.gz
linux-next-d0105247ca7e281aac61216d8a641576200f262f.zip
scsi: hpsa: Make buff allocation type unsigned
In preparation for converting the kmalloc family of allocators to the type-aware kmalloc_obj family, we need to make sure that the returned type from the allocation matches the type of the variable being assigned. (The kmalloc family returns "void *", which can be implicitly cast to any pointer type.) The assigned type is "unsigned char **", but the converted allocation type would be "char **", whose elements point to a character type of a different signedness, so the two pointer types are not compatible. Take the size from the assignment target instead. No change in allocation size results. Build tested ARCH=x86_64 allmodconfig with GCC 16.2.0: drivers/scsi/hpsa.o Assisted-by: LLM coccinelle Signed-off-by: Kees Cook <kees+treewide@kernel.org> Link: https://patch.msgid.link/20260917211137.i.357-kees@kernel.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions