summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-04-15 14:25:43 +0200
committerKees Cook <kees@kernel.org>2026-05-13 10:54:08 -0700
commit233e1ab980269394bfa78191ac12446cc6a22683 (patch)
treea06f80a00910eb96aebd9889618c25a38fa56f68 /scripts
parente0251b5e07f313619c15054de69bee10678da3a6 (diff)
lib/string_helpers: drop redundant allocation in kasprintf_strarray
kasprintf_strarray() returns an array of N strings and kfree_strarray() also frees N entries. However, kasprintf_strarray() currently allocates N+1 char pointers. Allocate exactly N pointers instead of N+1. Also update the kernel-doc for @n. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20260415122542.370926-4-thorsten.blum@linux.dev Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions