aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/r128_drm.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-09-27 02:17:17 -0400
committerDave Airlie <airlied@redhat.com>2010-09-30 19:17:44 -0400
commit29d08b3efddca628b0360411ab2b85f7b1723f48 (patch)
treef89a8a3069ebe9828b8a08c4b123f52625bf0bc7 /include/drm/r128_drm.h
parent130b9851933e6da636502cd85e1ba8f45f862e8c (diff)
drm/gem: handlecount isn't really a kref so don't make it one.
There were lots of places being inconsistent since handle count looked like a kref but it really wasn't. Fix this my just making handle count an atomic on the object, and have it increase the normal object kref. Now i915/radeon/nouveau drivers can drop the normal reference on userspace object creation, and have the handle hold it. This patch fixes a memory leak or corruption on unload, because the driver had no way of knowing if a handle had been actually added for this object, and the fbcon object needed to know this to clean itself up properly. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/r128_drm.h')
0 files changed, 0 insertions, 0 deletions