Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 9624905

Browse files
committed
Merge tag 'probes-fixes-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull probes fixlet from Masami Hiramatsu: - tracing/probes: initialize a 'val' local variable with zero. This variable is read by FETCH_OP_ST_EDATA in a loop, and is initialized by FETCH_OP_ARG in the same loop. Since this initialization is not obvious, smatch warns about it. Explicitly initializing 'val' with zero fixes this warning. * tag 'probes-fixes-v6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: tracing: probes: Fix to zero initialize a local variable
2 parents f4a4329 + 0add699 commit 9624905

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
@@ -839,7 +839,7 @@ int traceprobe_get_entry_data_size(struct trace_probe *tp)
839839
void store_trace_entry_data(void *edata, struct trace_probe *tp, struct pt_regs *regs)
840840
{
841841
struct probe_entry_arg *earg = tp->entry_arg;
842-
unsigned long val;
842+
unsigned long val = 0;
843843
int i;
844844

845845
if (!earg)

0 commit comments

Comments
 (0)