Skip to content
Commit c5765ece authored by Masanari Iida's avatar Masanari Iida Committed by Jiri Olsa
Browse files

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: default avatarMasanari Iida <standby24x7@gmail.com>
Link: http://lkml.kernel.org/r/1400087618-13628-1-git-send-email-standby24x7@gmail.com


Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
parent 9d372ca5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment