aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <[email protected]>2025-02-26 06:18:46 +0000
committerMasami Hiramatsu (Google) <[email protected]>2025-02-27 00:10:21 +0000
commitac965d7d88fc36fb42e3d50225c0a44dd8326da4 (patch)
treeaf1819fa7e03a2af1f44f0ef178b386363dbcabf /net/unix/unix_bpf.c
parentLinux 6.14-rc4 (diff)
downloadkernel-ac965d7d88fc36fb42e3d50225c0a44dd8326da4.tar.gz
kernel-ac965d7d88fc36fb42e3d50225c0a44dd8326da4.zip
tracing: tprobe-events: Fix a memory leak when tprobe with $retval
Fix a memory leak when a tprobe is defined with $retval. This combination is not allowed, but the parse_symbol_and_return() does not free the *symbol which should not be used if it returns the error. Thus, it leaks the *symbol memory in that error path. Link: https://lore.kernel.org/all/174055072650.4079315.3063014346697447838.stgit@mhiramat.tok.corp.google.com/ Fixes: ce51e6153f77 ("tracing: fprobe-event: Fix to check tracepoint event and return") Signed-off-by: Masami Hiramatsu (Google) <[email protected]> Reviewed-by: Steven Rostedt (Google) <[email protected]> Cc: [email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions