Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318736
b: refs/heads/master
c: 1e179d4
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Dave Airlie committed Jul 25, 2012
1 parent b09f3ac commit 62ceabf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: d1c7871ddb1f588b8eb35affd9ee1a3d5e11cd0c
refs/heads/master: 1e179d4e283bd197035960ef751b5ccac06cbf91
6 changes: 5 additions & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,11 @@ unsigned radeon_ring_backup(struct radeon_device *rdev, struct radeon_ring *ring
}

/* and then save the content of the ring */
*data = kmalloc(size * 4, GFP_KERNEL);
*data = kmalloc_array(size, sizeof(uint32_t), GFP_KERNEL);
if (!*data) {
mutex_unlock(&rdev->ring_lock);
return 0;
}
for (i = 0; i < size; ++i) {
(*data)[i] = ring->ring[ptr++];
ptr &= ring->ptr_mask;
Expand Down

0 comments on commit 62ceabf

Please sign in to comment.