summaryrefslogtreecommitdiff
path: root/drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-06 20:17:52 -0600
committerPaul Walmsley <pjw@kernel.org>2026-06-06 20:17:52 -0600
commitb954dba17b2ee53dadd34a7aacf55a33a775448f (patch)
treec675d28a4e3fae1c466ca68d90a56067c062673b /drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git
parent1a9e47c2c38ad2af1916cdd4a0119e87ecb5baae (diff)
riscv: pi: replace strlcat with strscpy in get_early_cmdline
Use the return value of strscpy() instead of calling strlen(fdt_cmdline) again and return early on string truncation. Drop the explicit size argument since early_cmdline has a fixed length, which strscpy() determines using sizeof() when the argument is omitted. Replace strlcat() with strscpy() to append CONFIG_CMDLINE. Also remove the unnecessary fdt_cmdline NULL initialization. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20260504154924.141566-3-thorsten.blum@linux.dev Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions