drm/amdkfd: Fix resource leak in criu restore queue
authorjsg <jsg@openbsd.org>
Fri, 11 Oct 2024 02:22:03 +0000 (02:22 +0000)
committerjsg <jsg@openbsd.org>
Fri, 11 Oct 2024 02:22:03 +0000 (02:22 +0000)
From Jesse Zhang
71cfb54e0f0c972b082f1791177b79385eac9d98 in linux-6.6.y/6.6.55
aa47fe8d3595365a935921a90d00bc33ee374728 in mainline linux

sys/dev/pci/drm/amd/amdkfd/kfd_process_queue_manager.c

index dbc75ca..0583af4 100644 (file)
@@ -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;
 }