[Bug 193367] [panic] sleeping thread

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 28 10:49:25 UTC 2014


Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
          Component|threads                     |kern
           Assignee|freebsd-threads at FreeBSD.org |freebsd-bugs at FreeBSD.org

--- Comment #12 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Eygene Ryabinkin from comment #11)
> ./i915/i915_dma.c:	.max_ioctl	= DRM_ARRAY_SIZE(i915_ioctls),
> and drmP.h reads
> #define DRM_ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
> so for the case when nr = dev->driver->max_ioctl, with
> dev->driver->ioctls[nr] you will be doing the same thing as for
> {{{
> <sometype> array[N];
> value = array[N];
> }}}
> that is off-by-one.
> Am I missing something?

No, you are right. Sorry for the confusion.

Feel free to commit the patch with reasonable MFC period (say, 1 week).
Approved by: kib.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-threads mailing list