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:22:37 +0000 (17:22 -0500)
commit2d2ccc4cbf440931843e64974da9fcd129d401a8
tree2de48a8614e8277ec97be1e741b2c31644aeb4c7
parentbcde9dad1bfa3754e004c14774d42e1f1210efe9
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>
drivers/gpu/drm/amd/amdkfd/kfd_events.c