Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180307
b: refs/heads/master
c: 0ce907f
h: refs/heads/master
i:
  180305: 0d6038b
  180303: bfade32
v: v3
  • Loading branch information
Chris Wilson authored and Eric Anholt committed Jan 25, 2010
1 parent 6619a9e commit 4d9360a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: eceb784cec4dc0fcc2993d9ee4a7c0d111ada80a
refs/heads/master: 0ce907f89118aa8748f950700b6919b1d8d8a038
4 changes: 4 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -3742,6 +3742,8 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
if (object_list[i] == NULL) {
DRM_ERROR("Invalid object handle %d at index %d\n",
exec_list[i].handle, i);
/* prevent error path from reading uninitialized data */
args->buffer_count = i + 1;
ret = -EBADF;
goto err;
}
Expand All @@ -3750,6 +3752,8 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
if (obj_priv->in_execbuffer) {
DRM_ERROR("Object %p appears more than once in object list\n",
object_list[i]);
/* prevent error path from reading uninitialized data */
args->buffer_count = i + 1;
ret = -EBADF;
goto err;
}
Expand Down

0 comments on commit 4d9360a

Please sign in to comment.