Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: fix a potential double free in pqm_create_queue

Set *q to NULL on errors, otherwise pqm_create_queue would free it
again.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Chia-I Wu and committed by
Alex Deucher
b2ca5c5d 8eeddc0d

+2 -2
+2 -2
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
··· 218 218 return 0; 219 219 220 220 cleanup: 221 - if (dev->shared_resources.enable_mes) 222 - uninit_queue(*q); 221 + uninit_queue(*q); 222 + *q = NULL; 223 223 return retval; 224 224 } 225 225