| From 3952f7862a4348d8c3ea00b573a74684337bb428 Mon Sep 17 00:00:00 2001 |
| From: Masami Hiramatsu <mhiramat@kernel.org> |
| Date: Sat, 25 Apr 2020 14:49:09 +0900 |
| Subject: [PATCH] tracing/kprobes: Fix a double initialization typo |
| |
| commit dcbd21c9fca5e954fd4e3d91884907eb6d47187e upstream. |
| |
| 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: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c |
| index b8fbf1d11e10..0daf33259804 100644 |
| --- a/kernel/trace/trace_kprobe.c |
| +++ b/kernel/trace/trace_kprobe.c |
| @@ -408,7 +408,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)) |
| -- |
| 2.7.4 |
| |