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:26:36 +0000 (11:26 +0100)
commit78f4bb6e965ddd9f60f607dfaf6e20109da84f6d
treea7e039cc04e3820b15299f2379d2e0e56f5a4c05
parentf5e69000aa80880491ca4a613679bd21c60b048b
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