Commit 1998919
perf/core: Preserve AUX buffer allocation failure result
commit 54473e0 upstream.
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 <tglx@linutronix.de>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 3b549da commit 1998919
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7052 | 7052 | | |
7053 | 7053 | | |
7054 | 7054 | | |
| 7055 | + | |
7055 | 7056 | | |
7056 | 7057 | | |
7057 | 7058 | | |
7058 | 7059 | | |
7059 | 7060 | | |
7060 | 7061 | | |
7061 | 7062 | | |
7062 | | - | |
7063 | | - | |
7064 | 7063 | | |
7065 | 7064 | | |
7066 | 7065 | | |
| |||
0 commit comments