diff options
author | Masami Hiramatsu (Google) <[email protected]> | 2024-03-20 17:10:38 +0900 |
---|---|---|
committer | Masami Hiramatsu (Google) <[email protected]> | 2024-03-25 16:24:31 +0900 |
commit | 0add699ad068d26e5b1da9ff28b15461fc4005df (patch) | |
tree | 3fa74050e6350890dedc90cea4e4876191e231d4 /lib/debugobjects.c | |
parent | e8c32f24766a1f22da024e73d1eb8e9c822482ac (diff) |
tracing: probes: Fix to zero initialize a local variable
Fix to initialize 'val' local variable with zero.
Dan reported that Smatch static code checker reports an error that a local
'val' variable needs to be initialized. Actually, the 'val' is expected to
be initialized by FETCH_OP_ARG in the same loop, but it is not obvious. So
initialize it with zero.
Link: https://lore.kernel.org/all/171092223833.237219.17304490075697026697.stgit@devnote2/
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 25f00e40ce79 ("tracing/probes: Support $argN in return probe (kprobe and fprobe)")
Reviewed-by: Steven Rostedt (Google) <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions