OSDN Git Service

drm/ttm: once more fix ttm_buffer_object_transfer
authorChristian König <christian.koenig@amd.com>
Mon, 30 Oct 2017 13:57:43 +0000 (14:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:24:35 +0000 (11:24 +0100)
commit5b1c8c96dfab3a15fafcbb573e98d17a12fbfcbc
tree1f7c04173ef5c9452c750bab6d37f8bb03a46b16
parent44df87e6dfadc423407f2b7a546396b86a37d462
drm/ttm: once more fix ttm_buffer_object_transfer

commit 4d98e5ee6084f6d7bc578c5d5f86de7156aaa4cb upstream.

When the mutex is locked just in the moment we copy it we end up with a
warning that we release a locked mutex.

Fix this by properly reinitializing the mutex.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo_util.c