kernel-fxtec-pro1x/drivers/gpu
Dave Airlie 29d08b3efd 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>
2010-10-01 09:17:44 +10:00
..
drm drm/gem: handlecount isn't really a kref so don't make it one. 2010-10-01 09:17:44 +10:00
vga vgaarb: trivial fix 2010-09-24 10:13:44 +10:00
Makefile PCI/GPU: implement VGA arbitration on Linux 2009-09-09 13:29:36 -07:00