Commit da02f54
perf/core: Clean up perf_try_init_event()
Make sure that perf_try_init_event() doesn't leave event->pmu nor
event->destroy set on failure.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Ravi Bangoria <ravi.bangoria@amd.com>
Link: https://lore.kernel.org/r/20250205102449.110145835@infradead.org1 parent 66477c7 commit da02f54
1 file changed
Lines changed: 38 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12109 | 12109 | | |
12110 | 12110 | | |
12111 | 12111 | | |
12112 | | - | |
12113 | | - | |
12114 | | - | |
12115 | | - | |
| 12112 | + | |
| 12113 | + | |
12116 | 12114 | | |
12117 | | - | |
12118 | | - | |
12119 | | - | |
| 12115 | + | |
| 12116 | + | |
| 12117 | + | |
| 12118 | + | |
| 12119 | + | |
12120 | 12120 | | |
12121 | | - | |
12122 | | - | |
12123 | | - | |
12124 | | - | |
12125 | | - | |
12126 | | - | |
12127 | | - | |
12128 | | - | |
12129 | | - | |
12130 | | - | |
12131 | | - | |
12132 | | - | |
12133 | | - | |
12134 | | - | |
12135 | | - | |
| 12121 | + | |
| 12122 | + | |
| 12123 | + | |
| 12124 | + | |
| 12125 | + | |
12136 | 12126 | | |
12137 | | - | |
12138 | | - | |
| 12127 | + | |
| 12128 | + | |
| 12129 | + | |
| 12130 | + | |
| 12131 | + | |
| 12132 | + | |
| 12133 | + | |
| 12134 | + | |
| 12135 | + | |
| 12136 | + | |
| 12137 | + | |
| 12138 | + | |
| 12139 | + | |
| 12140 | + | |
| 12141 | + | |
| 12142 | + | |
| 12143 | + | |
12139 | 12144 | | |
12140 | 12145 | | |
12141 | | - | |
12142 | | - | |
12143 | | - | |
| 12146 | + | |
| 12147 | + | |
| 12148 | + | |
| 12149 | + | |
| 12150 | + | |
| 12151 | + | |
12144 | 12152 | | |
12145 | 12153 | | |
| 12154 | + | |
| 12155 | + | |
| 12156 | + | |
12146 | 12157 | | |
12147 | 12158 | | |
12148 | 12159 | | |
| |||
0 commit comments