aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorHiraku Toyooka <[email protected]>2012-12-19 16:02:34 +0900
committerSteven Rostedt <[email protected]>2013-01-21 13:22:32 -0500
commita54164114b96b4693b42cdb553260eec41ea4393 (patch)
tree0e3f73cb2b3fc36397e5b2f3d3d60643f62eb72e /lib/debugobjects.c
parent6aea49cb5f3001a8275bf9c9f586ec3eb39af194 (diff)
tracing: Add checks if tr->buffer is NULL in tracing_reset{_online_cpus}
max_tr->buffer could be NULL in the tracing_reset{_online_cpus}. In this case, a NULL pointer dereference happens, so we should return immediately from these functions. Note, the current code does not call tracing_reset*() with max_tr when its buffer is NULL, but future code will. This patch is needed to prevent the future code from crashing. Link: http://lkml.kernel.org/r/20121219070234.31200.93863.stgit@liselsia Signed-off-by: Hiraku Toyooka <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions