Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2014 10:49:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 193367] [panic] sleeping thread
Message-ID:  <bug-193367-8-VBg7bwyG5Z@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-193367-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-193367-8@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=3D193367

Konstantin Belousov <kib@FreeBSD.org> changed:

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

--- Comment #12 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Eygene Ryabinkin from comment #11)
> ./i915/i915_dma.c:	.max_ioctl	=3D 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 =3D dev->driver->max_ioctl, with
> dev->driver->ioctls[nr] you will be doing the same thing as for
> {{{
> <sometype> array[N];
>=20
> value =3D array[N];
> }}}
> that is off-by-one.
>=20
> 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.

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



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