drm/radeon: double lock typo in radeon_vm_bo_rmv()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 9 Jan 2012 12:45:41 +0000 (15:45 +0300)
committerDave Airlie <airlied@redhat.com>
Mon, 9 Jan 2012 12:49:48 +0000 (12:49 +0000)
The second lock should be an unlock or it causes a deadlock.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_gart.c

index a97baf5..010dad8 100644 (file)
@@ -603,7 +603,7 @@ int radeon_vm_bo_rmv(struct radeon_device *rdev,
        radeon_vm_bo_update_pte(rdev, vm, bo, NULL);
        radeon_mutex_unlock(&rdev->cs_mutex);
        list_del(&bo_va->vm_list);
-       mutex_lock(&vm->mutex);
+       mutex_unlock(&vm->mutex);
 
        kfree(bo_va);
        return 0;