]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unreference object not handle on creation
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 24 Jul 2010 20:03:49 +0000 (21:03 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:58:06 +0000 (19:58 -0700)
commitd7646946bbc23fdee9062ce3ec649ea179e61171
tree8198687f1c97d4099c44c3446469b748c25a313a
parent4c167c2b01d0c24ad71ea2afe0b742b385e89f04
drm/i915: Unreference object not handle on creation

When creating an object, we create the handle by which it is known to
the process and which own the reference to the object. That reference to
the new handle is what we want to transfer to the process, not the lost
reference to the object; so free the local object reference *not* the
process's handle reference.

This brings i915_gem_object_create_ioctl() into line with
drm_gem_open_ioctl()

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c