[PATCH 4/5] drm/amdkfd: Set priv_queue to NULL after it is freed

Felix Kuehling felix.kuehling at amd.com
Fri Jul 16 14:06:07 UTC 2021


Am 2021-07-15 um 9:34 p.m. schrieb Oak Zeng:
> This variable will be used to determine whether packet
> manager is initialized or not, in a future patch.
>
> Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>


> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
> index d8e940f..b130cc0 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
> @@ -278,6 +278,7 @@ void pm_uninit(struct packet_manager *pm, bool hanging)
>  {
>  	mutex_destroy(&pm->lock);
>  	kernel_queue_uninit(pm->priv_queue, hanging);
> +	pm->priv_queue = NULL;
>  }
>  
>  int pm_send_set_resources(struct packet_manager *pm,


More information about the amd-gfx mailing list