diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-10-01 15:09:07 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2025-10-08 12:05:46 -0400 |
commit | f0c029d2ff42499a62c873c14428f02bf94c28af (patch) | |
tree | 1d04e5e9f1bc9139d256b96f7eb85cef2bd429ee /scripts/lib/kdoc/kdoc_parser.py | |
parent | e5f0a698b34ed76002dc5cff3804a61c80233a7a (diff) |
tracing/osnoise: Replace kmalloc + copy_from_user with memdup_user_nul
Replace kmalloc() followed by copy_from_user() with memdup_user_nul() to
simplify and improve osnoise_cpus_write(). Remove the manual
NUL-termination.
No functional changes intended.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20251001130907.364673-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions