Skip to content
Commit b861f0e6 authored by Chia-I Wu's avatar Chia-I Wu Committed by Greg Kroah-Hartman
Browse files

drm/amdkfd: fix a potential double free in pqm_create_queue



[ Upstream commit b2ca5c5d ]

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

Signed-off-by: default avatarChia-I Wu <olvaffe@gmail.com>
Signed-off-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b61b21bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment