diff options
| author | Nathan Chancellor <[email protected]> | 2025-07-16 03:19:44 +0000 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <[email protected]> | 2025-07-16 05:01:54 +0000 |
| commit | 1ed171a3afe81531b3ace96bd151a372dda3ee25 (patch) | |
| tree | 99e91faa93a412374f52f9a3d710a0ebf2c3ddfc /lib/crypto/mpi/mpi-cmp.c | |
| parent | Linux 6.16-rc6 (diff) | |
| download | kernel-1ed171a3afe81531b3ace96bd151a372dda3ee25.tar.gz kernel-1ed171a3afe81531b3ace96bd151a372dda3ee25.zip | |
tracing/probes: Avoid using params uninitialized in parse_btf_arg()
After a recent change in clang to strengthen uninitialized warnings [1],
it points out that in one of the error paths in parse_btf_arg(), params
is used uninitialized:
kernel/trace/trace_probe.c:660:19: warning: variable 'params' is uninitialized when used here [-Wuninitialized]
660 | return PTR_ERR(params);
| ^~~~~~
Match many other NO_BTF_ENTRY error cases and return -ENOENT, clearing
up the warning.
Link: https://lore.kernel.org/all/20250715-trace_probe-fix-const-uninit-warning-v1-1-98960f91dd04@kernel.org/
Cc: [email protected]
Closes: https://github.com/ClangBuiltLinux/linux/issues/2110
Fixes: d157d7694460 ("tracing/probes: Support BTF field access from $retval")
Link: https://github.com/llvm/llvm-project/commit/2464313eef01c5b1edf0eccf57a32cdee01472c7 [1]
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
