]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drm/i915: Unreference object not handle on creation"
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Sep 2010 13:44:14 +0000 (14:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Sep 2010 22:09:49 +0000 (23:09 +0100)
commitd4148a9cff77c3b29cd1cd6b0708e67dc1305d0a
treecadde12a7cfc5ce67767af4d6405726666a50241
parent4a3f4249cb9940a9006cb7e4e28a4741d3341186
Revert "drm/i915: Unreference object not handle on creation"

This reverts commit d7646946bbc23fdee9062ce3ec649ea179e61171.

The kref API requires the handlecount to be initialised to one on object
creation (so that kref_get() doesn't complain upon first use) so the
dalliance in the drivers is required in order to sink the initial
floating reference.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
drivers/gpu/drm/i915/i915_gem.c