tracing/kprobes: Fix a double initialization typo
authorMasami Hiramatsu <mhiramat@kernel.org>
Sat, 25 Apr 2020 05:49:09 +0000 (14:49 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 6 May 2020 13:04:11 +0000 (09:04 -0400)
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>
kernel/trace/trace_kprobe.c

index d0568af4a0ef62001372988ba539058551934741..0d9300c3b08467f6ac16b4d0743963ebe5c628f3 100644 (file)
@@ -453,7 +453,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))