tracing: Use free_trace_buffer() in allocate_trace_buffers()
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Wed, 20 Jul 2022 02:46:48 +0000 (10:46 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 2 Aug 2022 19:13:19 +0000 (15:13 -0400)
commit59927cbe3f30c5ed7fc5d33487ef06611394a548
tree4339dc64bb92cb92821e0a76abdc98b87c04b932
parent4c3d2f9388d36eb28640a220a6f908328442d873
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>
kernel/trace/trace.c