]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Cleanup kfd_process if init_cwsr_apu fails
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 12 Feb 2021 06:37:52 +0000 (01:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Feb 2021 23:03:07 +0000 (18:03 -0500)
commit36a67feaa6dfb71fd231531e2072d5d75d03baae
tree60d26f7dfdd485df5b0991a0e26acd0cf4b97209
parent232485eb78aed96721b8f3a3eb1276ef5dde13ec
drm/amdkfd: Cleanup kfd_process if init_cwsr_apu fails

If init_cwsr_apu fails, we currently leave the kfd_process structure in
place anyway. The next kfd_open will then succeed, using the existing
kfd_process structure. Fix that by cleaning up the kfd_process after a
failure in init_cwsr_apu.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c