Commit 54473e0
committed
perf/core: Preserve AUX buffer allocation failure result
A recent overhaul sets the return value to 0 unconditionally after the
allocations, which causes reference count leaks and corrupts the user->vm
accounting.
Preserve the AUX buffer allocation failure return value, so that the
subsequent code works correctly.
Fixes: 0983593 ("perf/core: Lift event->mmap_mutex in perf_mmap()")
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Lorenzo Stoakes <[email protected]>
Cc: [email protected]1 parent 7e161a9 commit 54473e0
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7115 | 7115 | | |
7116 | 7116 | | |
7117 | 7117 | | |
| 7118 | + | |
7118 | 7119 | | |
7119 | 7120 | | |
7120 | 7121 | | |
7121 | 7122 | | |
7122 | 7123 | | |
7123 | 7124 | | |
7124 | 7125 | | |
7125 | | - | |
7126 | | - | |
7127 | 7126 | | |
7128 | 7127 | | |
7129 | 7128 | | |
| |||
0 commit comments