Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2014 10:37:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        stable@FreeBSD.org
Subject:   [Bug 193367] [panic] sleeping thread
Message-ID:  <bug-193367-1689-r2V36izo9I@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193367-1689@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193367-1689@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193367

--- Comment #11 from Eygene Ryabinkin <rea@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193367-1689-r2V36izo9I>