mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 18:38:46 +07:00
drm/amdkfd: Fix a memory leak in queue creation error handling
When the queue creation failed, some resources were not freed. Fix it. Signed-off-by: Yong Zhao <Yong.Zhao@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b42902f4af
commit
66f28b9a16
@ -329,6 +329,9 @@ int pqm_create_queue(struct process_queue_manager *pqm,
|
||||
return retval;
|
||||
|
||||
err_create_queue:
|
||||
uninit_queue(q);
|
||||
if (kq)
|
||||
kernel_queue_uninit(kq, false);
|
||||
kfree(pqn);
|
||||
err_allocate_pqn:
|
||||
/* check if queues list is empty unregister process from device */
|
||||
|
Loading…
Reference in New Issue
Block a user