diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2025-08-02 12:39:39 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-08-05 21:55:29 +0200 |
commit | 5468c0fbccbb9d156522c50832244a8b722374fb (patch) | |
tree | 279ffe5fe42df3486392902972a95d3b96ff7322 /drivers/cdx/controller/cdx_controller.c | |
parent | 54473e0ef849f44e5ee43e6d6746c27030c3825b (diff) |
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 <tglx@linutronix.de>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions