git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0b70cc
)
tracing: Fix check of ftrace_trace_arrays list_empty() check
author
Steven Rostedt (Red Hat)
<rostedt@goodmis.org>
Tue, 10 Jun 2014 17:53:50 +0000
(13:53 -0400)
committer
Steven Rostedt
<rostedt@goodmis.org>
Tue, 10 Jun 2014 17:53:50 +0000
(13:53 -0400)
The check that tests if ftrace_trace_arrays is empty in
top_trace_array(), uses the .prev pointer:
if (list_empty(ftrace_trace_arrays.prev))
instead of testing the variable itself:
if (list_empty(&ftrace_trace_arrays))
Although it is technically correct, it is awkward and confusing.
Use the proper method.
Link:
http://lkml.kernel.org/r/87oay1bas8.fsf@sejong.aot.lge.com
Reported-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.h
patch
|
blob
|
history
diff --cc
kernel/trace/trace.h
Simple merge