diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2025-08-04 22:22:09 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-08-05 21:55:28 +0200 |
commit | 54473e0ef849f44e5ee43e6d6746c27030c3825b (patch) | |
tree | f03c6194cc4a47a9da57d0cd364ad6b09bbeeb19 /rust/helpers/task.c | |
parent | 7e161a991ea71e6ec526abc8f40c6852ebe3d946 (diff) |
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: 0983593f32c4 ("perf/core: Lift event->mmap_mutex in perf_mmap()")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions