diff options
author | Jesse Zhang <jesse.zhang@amd.com> | 2024-09-06 11:29:55 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-09-10 13:44:06 -0400 |
commit | aa47fe8d3595365a935921a90d00bc33ee374728 (patch) | |
tree | dcc1307287eb36468dd76894ecb58d3995841eb7 | |
parent | 578aab4ecc73476393389440724b7a391cc0cea9 (diff) | |
download | lwn-aa47fe8d3595365a935921a90d00bc33ee374728.tar.gz lwn-aa47fe8d3595365a935921a90d00bc33ee374728.zip |
drm/amdkfd: Fix resource leak in criu restore queue
To avoid memory leaks, release q_extra_data when exiting the restore queue.
v2: Correct the proto (Alex)
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Tim Huang <tim.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c index 20ea745729ee..b439d4d0bd84 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c @@ -1046,6 +1046,7 @@ exit: pr_debug("Queue id %d was restored successfully\n", queue_id); kfree(q_data); + kfree(q_extra_data); return ret; } |