]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix error handling in kfd_criu_restore_events
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 3 Nov 2022 21:01:46 +0000 (17:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2022 22:57:16 +0000 (17:57 -0500)
commit66f7903779fbbc620bf1040017e4833ef6a0b541
tree0d027388eee6fea4ae53c9b13dc1229989f8bd13
parentbc66c9ab162d2a633ee3eb864d7bc2369e79c1e4
drm/amdkfd: Fix error handling in kfd_criu_restore_events

mutex_unlock before the exit label because all the error code paths that
jump there didn't take that lock. This fixes unbalanced locking errors
in case of restore errors.

Fixes: 40e8a766a761 ("drm/amdkfd: CRIU checkpoint and restore events")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_events.c