Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311025
b: refs/heads/master
c: 489797d
h: refs/heads/master
i:
  311023: 5013b92
v: v3
  • Loading branch information
Dave Airlie committed Jun 16, 2012
1 parent 114415e commit 8afcbc3
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 0ec0612a80f957000999c3f7b31a84e3558c719d
refs/heads/master: 489797d510dfbce15120492d7ef6f956928b99f2
10 changes: 8 additions & 2 deletions trunk/drivers/gpu/drm/radeon/radeon_prime.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,17 @@ struct dma_buf *radeon_gem_prime_export(struct drm_device *dev,
struct radeon_bo *bo = gem_to_radeon_bo(obj);
int ret = 0;

ret = radeon_bo_reserve(bo, false);
if (unlikely(ret != 0))
return ERR_PTR(ret);

/* pin buffer into GTT */
ret = radeon_bo_pin(bo, RADEON_GEM_DOMAIN_GTT, NULL);
if (ret)
if (ret) {
radeon_bo_unreserve(bo);
return ERR_PTR(ret);

}
radeon_bo_unreserve(bo);
return dma_buf_export(bo, &radeon_dmabuf_ops, obj->size, flags);
}

Expand Down

0 comments on commit 8afcbc3

Please sign in to comment.