diff options
author | 2021-08-24 14:51:50 +0300 | |
---|---|---|
committer | 2021-09-07 20:58:23 -0400 | |
commit | 5615e088b43d564aec08ccfaecb21ba484a1b4d6 (patch) | |
tree | bb792c38cf876d85e1561b1f04d3ed5f91b7e1cc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | tracing: Add migrate-disabled counter to tracing output. (diff) | |
download | wireguard-linux-5615e088b43d564aec08ccfaecb21ba484a1b4d6.tar.xz wireguard-linux-5615e088b43d564aec08ccfaecb21ba484a1b4d6.zip |
tracing: Fix some alloc_event_probe() error handling bugs
There are two bugs in this code. First, if the kzalloc() fails it leads
to a NULL dereference of "ep" on the next line. Second, if the
alloc_event_probe() function returns an error then it leads to an
error pointer dereference in the caller.
Link: https://lkml.kernel.org/r/20210824115150.GI31143@kili
Fixes: 7491e2c44278 ("tracing: Add a probe that attaches to trace events")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions