Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+1 -1
+1 -1
kernel/trace/trace_probe.c
··· 839 839 void store_trace_entry_data(void *edata, struct trace_probe *tp, struct pt_regs *regs) 840 840 { 841 841 struct probe_entry_arg *earg = tp->entry_arg; 842 - unsigned long val; 842 + unsigned long val = 0; 843 843 int i; 844 844 845 845 if (!earg)