https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193367
Konstantin Belousov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|threads |kern Assignee|[email protected] |[email protected] --- Comment #12 from Konstantin Belousov <[email protected]> --- (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. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
