Skip to content

Commit e229155

Browse files
committed
Merge tag 'probes-fixes-v6.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull probes fix from Masami Hiramatsu: - fprobe-event: The @params variable was being used in an error path without being initialized. The fix to return an error code. * tag 'probes-fixes-v6.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: tracing/probes: Avoid using params uninitialized in parse_btf_arg()
2 parents 4664a4d + 1ed171a commit e229155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static int parse_btf_arg(char *varname,
657657
ret = query_btf_context(ctx);
658658
if (ret < 0 || ctx->nr_params == 0) {
659659
trace_probe_log_err(ctx->offset, NO_BTF_ENTRY);
660-
return PTR_ERR(params);
660+
return -ENOENT;
661661
}
662662
}
663663
params = ctx->params;

0 commit comments

Comments
 (0)