Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84a50dc4 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Greg Kroah-Hartman
Browse files

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: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fc441be4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -538,7 +538,7 @@ static bool __within_notrace_func(unsigned long addr)


static bool within_notrace_func(struct trace_kprobe *tk)
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;
	char symname[KSYM_NAME_LEN], *p;


	if (!__within_notrace_func(addr))
	if (!__within_notrace_func(addr))