diff options
author | Zhiqiang Liu <liuzhiqiang26@huawei.com> | 2022-07-20 10:46:48 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-08-02 15:13:19 -0400 |
commit | 59927cbe3f30c5ed7fc5d33487ef06611394a548 (patch) | |
tree | 4339dc64bb92cb92821e0a76abdc98b87c04b932 /kernel/trace/bpf_trace.h | |
parent | 4c3d2f9388d36eb28640a220a6f908328442d873 (diff) |
tracing: Use free_trace_buffer() in allocate_trace_buffers()
In allocate_trace_buffers(), if allocating tr->max_buffer
fails, we can directly call free_trace_buffer to free
tr->array_buffer.
Link: https://lkml.kernel.org/r/65f0702d-07f6-08de-2a07-4c50af56a67b@huawei.com
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/bpf_trace.h')
0 files changed, 0 insertions, 0 deletions