Commit 54473e0e authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: 0983593f ("perf/core: Lift event->mmap_mutex in perf_mmap()")
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: stable@vger.kernel.org
parent 7e161a99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment