diff options
author | Frederic Weisbecker <[email protected]> | 2009-03-22 23:10:45 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-03-23 16:25:47 +0100 |
commit | 3e1f60b80cafcb5d7e8d3665b35962fbb8fb9efa (patch) | |
tree | 80b07264a2599f494f9f8eebb7230ceead3ae645 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | c0f92ba99bdeaf35f9c580291b4e1a657c67fbd4 (diff) |
tracing/ftrace: check if debugfs is registered before creating files
Impact: fix a crash with ftrace={nop,boot} parameter
If the nop or initcall tracers are launched as boot tracers,
they will attempt to create their option directory and files.
But these tracers are registered very early and then assigned
as "boot tracers" very early if asked to.
Since they do this before debugfs has been registered (core initcall),
a crash is triggered.
Another early tracers could also come later. So we fix it by
checking if debugfs is initialized before creating the root
tracing directory.
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions