diff options
author | Carsten Emde <C.Emde@osadl.org> | 2012-06-19 04:43:16 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-07-02 15:34:25 -0400 |
commit | 1c17e4d4437d8045a596d9f06c1558dc09e2b372 (patch) | |
tree | 3ca3d1752b954211d8f3e295d107bd0bcca65a9d /kernel/rcutree_plugin.h | |
parent | d7118175cce7e76b3292b60832813ef1f28b6523 (diff) |
rcu: Prevent uninitialized string in RCU CPU stall info
An uninitialized string may be displayed at the end of the rcu_preempt
detected stall info such as
0: (1 GPs behind) idle=075/140000000000000/0 =8?^D=8?^D
^^^^^^^^^^
if CONFIG_RCU_FAST_NO_HZ is not defined.
This trivial patch clears the string in this case.
Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 4b6b17cdf66b..395cdd1e0634 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -2224,6 +2224,7 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu) | |||
2224 | 2224 | ||
2225 | static void print_cpu_stall_fast_no_hz(char *cp, int cpu) | 2225 | static void print_cpu_stall_fast_no_hz(char *cp, int cpu) |
2226 | { | 2226 | { |
2227 | *cp = '\0'; | ||
2227 | } | 2228 | } |
2228 | 2229 | ||
2229 | #endif /* #else #ifdef CONFIG_RCU_FAST_NO_HZ */ | 2230 | #endif /* #else #ifdef CONFIG_RCU_FAST_NO_HZ */ |