commit | a83f30ead25c76f2d2ab81941860ac5065f64416 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | Wed Mar 24 18:00:44 2021 -0400 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Thu Mar 25 11:48:14 2021 -0400 |
tree | 9d5f8760c9ce38b5d55bbef915b8ac4de3f03874 | |
parent | 2191498dc35d629003591f727b604120fabbe02d [diff] |
trace-cmd: Test for NULL pointer in tracecmd_tsync_free() If an error happens it is possible that tracecmd_tsync_free() gets called with a NULL pointer, which causes a SIGSEGV crash. Prevent a crash by testing if the tsync passed into tracecmd_tsync_free() is NULL. Link: https://lore.kernel.org/linux-trace-devel/20210324180044.748d8b4b@gandalf.local.home Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>