Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218323
b: refs/heads/master
c: 202f2fe
h: refs/heads/master
i:
  218321: 75cdc60
  218319: f00df49
v: v3
  • Loading branch information
Chris Wilson committed Oct 19, 2010
1 parent ad5f220 commit 85ce1d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: f0c43d9b7ec1bb9827b3dd5ac5915d22ceed8f6a
refs/heads/master: 202f2fef7a1aa6b2e4fa6e1de3ef582342fd41f0
11 changes: 7 additions & 4 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,17 @@ i915_gem_create_ioctl(struct drm_device *dev, void *data,
return -ENOMEM;

ret = drm_gem_handle_create(file_priv, obj, &handle);
/* drop reference from allocate - handle holds it now */
drm_gem_object_unreference_unlocked(obj);
if (ret) {
drm_gem_object_release(obj);
i915_gem_info_remove_obj(dev->dev_private, obj->size);
kfree(obj);
return ret;
}

/* drop reference from allocate - handle holds it now */
drm_gem_object_unreference(obj);
trace_i915_gem_object_create(obj);

args->handle = handle;
return 0;
}
Expand Down Expand Up @@ -4380,8 +4385,6 @@ struct drm_gem_object * i915_gem_alloc_object(struct drm_device *dev,
INIT_LIST_HEAD(&obj->gpu_write_list);
obj->madv = I915_MADV_WILLNEED;

trace_i915_gem_object_create(&obj->base);

return &obj->base;
}

Expand Down

0 comments on commit 85ce1d8

Please sign in to comment.