Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299740
b: refs/heads/master
c: 44afb3a
h: refs/heads/master
v: v3
  • Loading branch information
Xi Wang authored and Daniel Vetter committed Apr 23, 2012
1 parent 4b58a10 commit d22116e
Show file tree
Hide file tree
Showing 2 changed files with 6 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: ed8cd3b2cd61004cab85380c52b1817aca1ca49b
refs/heads/master: 44afb3a04391a74309d16180d1e4f8386fdfa745
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,11 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
return -EINVAL;
}

if (args->num_cliprects > UINT_MAX / sizeof(*cliprects)) {
DRM_DEBUG("execbuf with %u cliprects\n",
args->num_cliprects);
return -EINVAL;
}
cliprects = kmalloc(args->num_cliprects * sizeof(*cliprects),
GFP_KERNEL);
if (cliprects == NULL) {
Expand Down

0 comments on commit d22116e

Please sign in to comment.