tracing/kprobes: Fix strpbrk() argument order
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 1 Nov 2018 14:29:28 +0000 (23:29 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 5 Nov 2018 14:47:14 +0000 (09:47 -0500)
commitee474b81fe5aa5dc0faae920bf66240fbf55f891
tree1217774096cd611025ba6c940744b715556e0d92
parent651022382c7f8da46cb4872a545ee1da6d097d2a
tracing/kprobes: Fix strpbrk() argument order

Fix strpbrk()'s argument order, it must pass acceptable string
in 2nd argument. Note that this can cause a kernel panic where
it recovers backup character to code->data.

Link: http://lkml.kernel.org/r/154108256792.2604.1816052586385217811.stgit@devbox
Fixes: a6682814f371 ("tracing/kprobes: Allow kprobe-events to record module symbol")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_probe.c