Skip to content

Commit

Permalink
drm/radeon: double lock typo in radeon_vm_bo_rmv()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed Jan 9, 2012
1 parent 55ba70c commit a7eef88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7eef88

Please sign in to comment.