diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-04-25 14:49:09 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-14 07:57:16 +0200 |
commit | 84a50dc4710fe40c2190ed74dc4eaa0241ef8c7a (patch) | |
tree | 2b1081c8082985f3a4fe3366f805615920fe0be1 /kernel | |
parent | fc441be4e890c234cce4b8fe9e4291230cd7e3e9 (diff) | |
download | linux-stable-84a50dc4710fe40c2190ed74dc4eaa0241ef8c7a.tar.gz linux-stable-84a50dc4710fe40c2190ed74dc4eaa0241ef8c7a.tar.bz2 linux-stable-84a50dc4710fe40c2190ed74dc4eaa0241ef8c7a.zip |
tracing/kprobes: Fix a double initialization typo
[ Upstream commit dcbd21c9fca5e954fd4e3d91884907eb6d47187e ]
Fix a typo that resulted in an unnecessary double
initialization to addr.
Link: http://lkml.kernel.org/r/158779374968.6082.2337484008464939919.stgit@devnote2
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org
Fixes: c7411a1a126f ("tracing/kprobe: Check whether the non-suffixed symbol is notrace")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_kprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 65b4e28ff425..c45b017bacd4 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -538,7 +538,7 @@ static bool __within_notrace_func(unsigned long addr) static bool within_notrace_func(struct trace_kprobe *tk) { - unsigned long addr = addr = trace_kprobe_address(tk); + unsigned long addr = trace_kprobe_address(tk); char symname[KSYM_NAME_LEN], *p; if (!__within_notrace_func(addr)) |