Commit 78f4bb6e authored by Christian König's avatar Christian König Committed by Greg Kroah-Hartman

drm/ttm: once more fix ttm_buffer_object_transfer

commit 4d98e5ee 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: default avatarChristian König <>
Reviewed-by: default avatarAlex Deucher <>
Signed-off-by: default avatarAlex Deucher <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent f5e69000
......@@ -474,6 +474,7 @@ static int ttm_buffer_object_transfer(struct ttm_buffer_object *bo,
fbo->moving = NULL;
atomic_set(&fbo->cpu_writers, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment