Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196531
b: refs/heads/master
c: f4b7fb9
h: refs/heads/master
i:
  196529: 54148bf
  196527: c083176
v: v3
  • Loading branch information
Dave Airlie committed May 18, 2010
1 parent dfd397d commit 71e95c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 539d24181753e40174746d576d415bfb56131975
refs/heads/master: f4b7fb94c576265ceffc43031805ade32fa80c6a
6 changes: 4 additions & 2 deletions trunk/drivers/gpu/drm/radeon/radeon_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,15 @@ void radeon_bo_kunmap(struct radeon_bo *bo)
void radeon_bo_unref(struct radeon_bo **bo)
{
struct ttm_buffer_object *tbo;
struct radeon_device *rdev;

if ((*bo) == NULL)
return;
rdev = (*bo)->rdev;
tbo = &((*bo)->tbo);
mutex_lock(&(*bo)->rdev->vram_mutex);
mutex_lock(&rdev->vram_mutex);
ttm_bo_unref(&tbo);
mutex_unlock(&(*bo)->rdev->vram_mutex);
mutex_unlock(&rdev->vram_mutex);
if (tbo == NULL)
*bo = NULL;
}
Expand Down

0 comments on commit 71e95c2

Please sign in to comment.