diff options
| author | Thomas Gleixner <[email protected]> | 2025-08-04 20:22:09 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-08-05 19:55:28 +0000 |
| commit | 54473e0ef849f44e5ee43e6d6746c27030c3825b (patch) | |
| tree | f03c6194cc4a47a9da57d0cd364ad6b09bbeeb19 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | Merge tag 'i2c-for-6.17-rc1-part2' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
| download | kernel-54473e0ef849f44e5ee43e6d6746c27030c3825b.tar.gz kernel-54473e0ef849f44e5ee43e6d6746c27030c3825b.zip | |
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 <[email protected]>
Reviewed-by: Lorenzo Stoakes <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
