drm/radeon: double lock typo in radeon_vm_bo_rmv()
Subsystems (3)
PATCH 2/2 drm/radeon: double lock typo in radeon_vm_bo_rmv()
The second lock should be an unlock or it causes a deadlock.
Signed-off-by Dan Carpenter <[email protected]>
drivers/gpu/drm/radeon/radeon_gart.c +1 -1
@@ -595,7 +595,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 ;
Quoted 3 lines · Dan Carpenter
The second lock should be an unlock or it causes a deadlock.
Signed-off-by Dan Carpenter <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 14 lines
drivers/gpu/drm/radeon/radeon_gart.c +1
-1@@ -595,7 +595,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;
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html