diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-01-23 18:27:59 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-01-23 18:27:59 +0100 |
commit | 3132e107d608f8753240d82d61303c500fd515b4 (patch) | |
tree | 2539c98c79927f04ebc1a2ab3ee1517a284c67b1 /kernel/module-internal.h | |
parent | tracing: Fix formatting of trace README file (diff) | |
download | linux-3132e107d608f8753240d82d61303c500fd515b4.tar.xz linux-3132e107d608f8753240d82d61303c500fd515b4.zip |
tracing: Check if tracing is enabled in trace_puts()
If trace_puts() is used very early in boot up, it can crash the machine
if it is called before the ring buffer is allocated. If a trace_printk()
is used with no arguments, then it will be converted into a trace_puts()
and suffer the same fate.
Cc: stable@vger.kernel.org # 3.10+
Fixes: 09ae72348ecc "tracing: Add trace_puts() for even faster trace_printk() tracing"
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/module-internal.h')
0 files changed, 0 insertions, 0 deletions