diff options
| author | Masanari Iida <[email protected]> | 2014-05-14 17:13:38 +0000 |
|---|---|---|
| committer | Jiri Olsa <[email protected]> | 2014-05-16 07:18:51 +0000 |
| commit | c5765ece8a050836c6255e1276fc8e0e867078da (patch) | |
| tree | c2cfc515ddacd64fa9be9d1a0ebe8b10596a9ccb /tools/perf/builtin-annotate.c | |
| parent | perf sched: Cleanup, remove unused variables in map_switch_event() (diff) | |
| download | kernel-c5765ece8a050836c6255e1276fc8e0e867078da.tar.gz kernel-c5765ece8a050836c6255e1276fc8e0e867078da.zip | |
perf session: Fix possible null pointer dereference in session.c
cppcheck detected following warning:
[tools/perf/util/session.c:1628] -> [tools/perf/util/session.c:1632]:
(warning) Possible null pointer dereference: session - otherwise it
is redundant to check it against null.
In order to avoide null pointer, check the pointer before use.
Signed-off-by: Masanari Iida <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
