tracing: Fix the checking of stackidx in __ftrace_trace_stack
authorQiujun Huang <hqjagain@gmail.com>
Sat, 31 Oct 2020 08:57:14 +0000 (16:57 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 2 Nov 2020 16:21:40 +0000 (11:21 -0500)
commit906695e59324635c62b5ae59df111151a546ca66
tree2528cce412f014f7b301a68f25758a9677b5e422
parent726b3d3f141fba6f841d715fc4d8a4a84f02c02a
tracing: Fix the checking of stackidx in __ftrace_trace_stack

The array size is FTRACE_KSTACK_NESTING, so the index FTRACE_KSTACK_NESTING
is illegal too. And fix two typos by the way.

Link: https://lkml.kernel.org/r/20201031085714.2147-1-hqjagain@gmail.com
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c