RE: [PATCH] drm/amdkfd: Fix resource leak in riu rsetore queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Public]

This patch is,

Reviewed-by: Tim Huang <tim.huang@xxxxxxx>



> -----Original Message-----
> From: Jesse.zhang@xxxxxxx <jesse.zhang@xxxxxxx>
> Sent: Monday, September 9, 2024 9:21 AM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx>; Koenig, Christian
> <Christian.Koenig@xxxxxxx>; Huang, Tim <Tim.Huang@xxxxxxx>; Zhang,
> Jesse(Jie) <Jesse.Zhang@xxxxxxx>
> Subject: [PATCH] drm/amdkfd: Fix resource leak in riu rsetore 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@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 1 +
>  1 file changed, 1 insertion(+)
>
> 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 @@ int kfd_criu_restore_queue(struct kfd_process *p,
>               pr_debug("Queue id %d was restored successfully\n", queue_id);
>
>       kfree(q_data);
> +     kfree(q_extra_data);
>
>       return ret;
>  }
> --
> 2.25.1





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux