Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180541
b: refs/heads/master
c: a40e8d3
h: refs/heads/master
i:
  180539: ee1b16b
v: v3
  • Loading branch information
Owain Ainsworth authored and Eric Anholt committed Feb 10, 2010
1 parent 26aade0 commit 78d6e8d
Show file tree
Hide file tree
Showing 3 changed files with 7 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: aacef09b59e99d9e919ede74d107d5d7f3721432
refs/heads/master: a40e8d3139e9eb54bf1d29f91639a6c5e05f652e
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,10 @@ static int i915_cmdbuffer(struct drm_device *dev, void *data,
if (cmdbuf->num_cliprects) {
cliprects = kcalloc(cmdbuf->num_cliprects,
sizeof(struct drm_clip_rect), GFP_KERNEL);
if (cliprects == NULL)
if (cliprects == NULL) {
ret = -ENOMEM;
goto fail_batch_free;
}

ret = copy_from_user(cliprects, cmdbuf->cliprects,
cmdbuf->num_cliprects *
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3688,8 +3688,10 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
if (args->num_cliprects != 0) {
cliprects = kcalloc(args->num_cliprects, sizeof(*cliprects),
GFP_KERNEL);
if (cliprects == NULL)
if (cliprects == NULL) {
ret = -ENOMEM;
goto pre_mutex_err;
}

ret = copy_from_user(cliprects,
(struct drm_clip_rect __user *)
Expand Down

0 comments on commit 78d6e8d

Please sign in to comment.