Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349480
b: refs/heads/master
c: fd5d93a
h: refs/heads/master
v: v3
  • Loading branch information
Alex Deucher committed Jan 31, 2013
1 parent bb1130f commit bfcb4ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2d68cf4daa4de97d400d94836b907e35228e54f
refs/heads/master: fd5d93a0015ce1a7db881382022b2fcdfdc61760
3 changes: 3 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsi
{
int r;

/* make sure we aren't trying to allocate more space than there is on the ring */
if (ndw > (ring->ring_size / 4))
return -ENOMEM;
/* Align requested size with padding so unlock_commit can
* pad safely */
ndw = (ndw + ring->align_mask) & ~ring->align_mask;
Expand Down

0 comments on commit bfcb4ca

Please sign in to comment.