aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2025-08-02 10:39:39 +0000
committerThomas Gleixner <[email protected]>2025-08-05 19:55:29 +0000
commit5468c0fbccbb9d156522c50832244a8b722374fb (patch)
tree279ffe5fe42df3486392902972a95d3b96ff7322 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentperf/core: Preserve AUX buffer allocation failure result (diff)
downloadkernel-5468c0fbccbb9d156522c50832244a8b722374fb.tar.gz
kernel-5468c0fbccbb9d156522c50832244a8b722374fb.zip
perf/core: Don't leak AUX buffer refcount on allocation failure
Failure of the AUX buffer allocation leaks the reference count. Set the reference count to 1 only when the allocation succeeds. Fixes: 45bfb2e50471 ("perf: Add AUX area to ring buffer for raw data streams") 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