Commit 59927cb
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>1 parent 4c3d2f9 commit 59927cb
1 file changed
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9101 | 9101 | | |
9102 | 9102 | | |
9103 | 9103 | | |
| 9104 | + | |
| 9105 | + | |
| 9106 | + | |
| 9107 | + | |
| 9108 | + | |
| 9109 | + | |
| 9110 | + | |
| 9111 | + | |
| 9112 | + | |
| 9113 | + | |
9104 | 9114 | | |
9105 | 9115 | | |
9106 | 9116 | | |
| |||
9113 | 9123 | | |
9114 | 9124 | | |
9115 | 9125 | | |
9116 | | - | |
9117 | | - | |
9118 | | - | |
9119 | | - | |
| 9126 | + | |
9120 | 9127 | | |
9121 | 9128 | | |
9122 | 9129 | | |
| |||
9131 | 9138 | | |
9132 | 9139 | | |
9133 | 9140 | | |
9134 | | - | |
9135 | | - | |
9136 | | - | |
9137 | | - | |
9138 | | - | |
9139 | | - | |
9140 | | - | |
9141 | | - | |
9142 | | - | |
9143 | | - | |
9144 | 9141 | | |
9145 | 9142 | | |
9146 | 9143 | | |
| |||
0 commit comments