]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing/synthetic: Fix trace_string() return value
authorThorsten Blum <thorsten.blum@toblux.com>
Wed, 14 Feb 2024 22:05:56 +0000 (23:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:05 +0000 (09:25 +0100)
commitac9a1c3bcd458311b334ee15992f4ff2899b41de
treec7c24d0efc9910bdfc12289e74dc7a684dc62d6b
parent6e48f4c616736dc7d36ce6a680f68c707a7a7f49
tracing/synthetic: Fix trace_string() return value

commit 9b6326354cf9a41521b79287da3bfab022ae0b6d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace_events_synth.c