[Bug 193367] [panic] sleeping thread

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 28 10:37:32 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193367

--- Comment #11 from Eygene Ryabinkin <rea at FreeBSD.org> ---
./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?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-stable mailing list