aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2024-02-14 23:05:56 +0100
committerSteven Rostedt (Google) <[email protected]>2024-02-15 11:40:01 -0500
commit9b6326354cf9a41521b79287da3bfab022ae0b6d (patch)
treede8e3f5166bafa0ec7ef6019bab7fdd66517653f /lib/test_fortify/write_overflow-strncpy-src.c
parent2394ac4145ea91b92271e675a09af2a9ea6840b7 (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