diff options
author | Thorsten Blum <[email protected]> | 2024-02-14 23:05:56 +0100 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2024-02-15 11:40:01 -0500 |
commit | 9b6326354cf9a41521b79287da3bfab022ae0b6d (patch) | |
tree | de8e3f5166bafa0ec7ef6019bab7fdd66517653f /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2394ac4145ea91b92271e675a09af2a9ea6840b7 (diff) |
tracing/synthetic: Fix trace_string() return value
Fix trace_string() by assigning the string length to the return variable
which got lost in commit ddeea494a16f ("tracing/synthetic: Use union
instead of casts") and caused trace_string() to always return 0.
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Cc: [email protected]
Cc: Mathieu Desnoyers <[email protected]>
Fixes: ddeea494a16f ("tracing/synthetic: Use union instead of casts")
Acked-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Thorsten Blum <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions