diff options
| author | Steven Rostedt (Red Hat) <[email protected]> | 2014-06-10 17:53:50 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2014-06-10 17:53:50 +0000 |
| commit | da9c3413a27be5ba6f996e90495c836dd30b8841 (patch) | |
| tree | a320d4d4318c6a0b8a4646e46e15059d1336b8c6 /scripts/basic/fixdep.c | |
| parent | tracing: Fix leak of per cpu max data in instances (diff) | |
| download | kernel-da9c3413a27be5ba6f996e90495c836dd30b8841.tar.gz kernel-da9c3413a27be5ba6f996e90495c836dd30b8841.zip | |
tracing: Fix check of ftrace_trace_arrays list_empty() check
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/[email protected]
Reported-by: Namhyung Kim <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'scripts/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions
