From: jsg Date: Fri, 11 Oct 2024 02:22:03 +0000 (+0000) Subject: drm/amdkfd: Fix resource leak in criu restore queue X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6d61e7ca60321e270d7ef2be7c49cc945d222ef6;p=openbsd drm/amdkfd: Fix resource leak in criu restore queue From Jesse Zhang 71cfb54e0f0c972b082f1791177b79385eac9d98 in linux-6.6.y/6.6.55 aa47fe8d3595365a935921a90d00bc33ee374728 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_process_queue_manager.c b/sys/dev/pci/drm/amd/amdkfd/kfd_process_queue_manager.c index dbc75ca8437..0583af4e84f 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_process_queue_manager.c +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_process_queue_manager.c @@ -982,6 +982,7 @@ exit: pr_debug("Queue id %d was restored successfully\n", queue_id); kfree(q_data); + kfree(q_extra_data); return ret; }