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 <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 578aab4 commit aa47fe8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)