aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/boot.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-12-11 10:10:08 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-12 03:26:12 -0500
commit8001530d5af707eb9a158839c8f651eb6c1cb3c2 (patch)
tree052788f8eb59b13bb7d1edf691150dbc7a54901b /include/trace/boot.h
parentf3134de60624829a57741c1f3796847d4de165f6 (diff)
tracing/fastboot: fix len of func buffer
Impact: fix possible stack overrun This is a port of a patch included in the mainline (KSYM_SYMBOL_LEN fixes). The current func len is not large enough to contain the max symbol len, the right size must be KSYM_SYMBOL_LEN. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace/boot.h')
-rw-r--r--include/trace/boot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/boot.h b/include/trace/boot.h
index 6b54537eab02..3ec58b4b7512 100644
--- a/include/trace/boot.h
+++ b/include/trace/boot.h
@@ -9,7 +9,7 @@
9 */ 9 */
10struct boot_trace_call { 10struct boot_trace_call {
11 pid_t caller; 11 pid_t caller;
12 char func[KSYM_NAME_LEN]; 12 char func[KSYM_SYMBOL_LEN];
13}; 13};
14 14
15/* 15/*
@@ -17,7 +17,7 @@ struct boot_trace_call {
17 * while it returns. 17 * while it returns.
18 */ 18 */
19struct boot_trace_ret { 19struct boot_trace_ret {
20 char func[KSYM_NAME_LEN]; 20 char func[KSYM_SYMBOL_LEN];
21 int result; 21 int result;
22 unsigned long long duration; /* nsecs */ 22 unsigned long long duration; /* nsecs */
23}; 23};