[PATCH] drm: gem objects do not have a handle upon creation
Chris Wilson
chris at chris-wilson.co.uk
Mon Sep 6 06:40:30 PDT 2010
On Sun, 5 Sep 2010 23:54:32 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> kref_init(handlecount) initialises the number of handles to 1 upon
> creation when it should remain 0 until the first allocation. All the
> drivers were working around this by deleting the extra count when they
> created the first handle for the object in spite of the documentation
> saying that it was unecessary.
Aside from the fact that the kref API prevents this as kref_get()
complains if called on a zero handlecount == 0.
--
Chris Wilson, Intel Open Source Technology Centre
More information about the dri-devel
mailing list