]> 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:51:40 +0000 (09:51 +0100)
commit33e669c32294f0c8e7821564f11d81e4b7bfcaba
treeb0141b5170dbff146222f95bb1feba3474cb14f9
parentb8a36f5b18596d0950749501d22a379b0d220fa3
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