Skip to content

Commit aa47fe8

Browse files
Jie1zhangalexdeucher
authored andcommitted
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>
1 parent 578aab4 commit aa47fe8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,7 @@ int kfd_criu_restore_queue(struct kfd_process *p,
10461046
pr_debug("Queue id %d was restored successfully\n", queue_id);
10471047

10481048
kfree(q_data);
1049+
kfree(q_extra_data);
10491050

10501051
return ret;
10511052
}

0 commit comments

Comments
 (0)