Re: [PATCH] drm: gem objects do not have a handle upon creation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun,  5 Sep 2010 23:54:32 +0100, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> 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
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux