summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorTzvetomir Stoyanov <tstoyanov@vmware.com>2018-11-28 14:55:52 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-12-17 14:55:19 -0300
commit44e92f8389b2242efde77d5321ffa88decd47df6 (patch)
tree6701602f671f8ef1115c1163406d0aa9722fdfb7 /tools/perf
parenta1c8cf293d57cb7c952b667805441b9fbb9c640a (diff)
tools lib traceevent: Add sanity check to is_timestamp_in_us()
This patch adds a sanity check to is_timestamp_in_us() input parameter trace_clock. It avoids a potential segfault in this function for the case trace_clock is NULL. Reported-by: Slavomir Kaslev <kaslevs@vmware.com> Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20181128145552.68c4f87b@gandalf.local.home Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions