[Intel-gfx] [PATCH] drm/i915: Unreference object, not handle
Jonas Bonn
jonas at southpole.se
Wed May 27 17:36:49 CEST 2009
The newly created handle should not be unreferenced here, just the object
that the handle points to.
Signed-off-by: Jonas Bonn <jonas at southpole.se>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 717b6a8..97a17a8 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -123,7 +123,7 @@ i915_gem_create_ioctl(struct drm_device *dev, void *data,
ret = drm_gem_handle_create(file_priv, obj, &handle);
mutex_lock(&dev->struct_mutex);
- drm_gem_object_handle_unreference(obj);
+ drm_gem_object_unreference(obj);
mutex_unlock(&dev->struct_mutex);
if (ret)
--
1.6.0.4
More information about the Intel-gfx
mailing list