]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing/synthetic: Free type string on error path
authorYu Peng <pengyu@kylinos.cn>
Wed, 3 Jun 2026 06:25:33 +0000 (14:25 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 7 Jul 2026 17:59:55 +0000 (13:59 -0400)
commit05074bb90af94f2acbbc8f8ffaa507f914c273c8
treea29b2d4df3768424e5382bef1b047808c3f0b600
parent50fd6dd755c6e48a38af2fa4621167eea56829c2
tracing/synthetic: Free type string on error path

parse_synth_field() builds a "__data_loc ..." type string before
assigning it to field->type. If the seq_buf check fails, the common
cleanup cannot free the temporary string. Free it before leaving.

Link: https://patch.msgid.link/20260603062533.1096320-2-pengyu@kylinos.cn
Signed-off-by: Yu Peng <pengyu@kylinos.cn>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events_synth.c