tracing/synthetic: Fix trace_string() return value
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 14 Feb 2024 22:05:56 +0000 (23:05 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 15 Feb 2024 16:40:01 +0000 (11:40 -0500)
commit9b6326354cf9a41521b79287da3bfab022ae0b6d
treede8e3f5166bafa0ec7ef6019bab7fdd66517653f
parent2394ac4145ea91b92271e675a09af2a9ea6840b7
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/20240214220555.711598-1-thorsten.blum@toblux.com
Cc: stable@vger.kernel.org
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fixes: ddeea494a16f ("tracing/synthetic: Use union instead of casts")
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_synth.c