git: sys/sys: Fix IOCPARM_MAX

Tomohiro Kusumi tkusumi at
Thu Jun 2 16:47:32 PDT 2016

commit 74b5eb2394c72667536e2c7115616aa8a7e8b612
Author: Tomohiro Kusumi <kusumi.tomohiro at>
Date:   Sun May 29 11:23:29 2016 +0900

    sys/sys: Fix IOCPARM_MAX
    Fix the previous commit brought in from from FreeBSD at GitHub
    The max possible size for ioctl structure is ((1<<13)-1).
    (1<<13) bit overlaps IOC_VOID, so it gets cut by _IOC().
    Also see L672 of sys/kern/sys_generic.c.

Summary of changes:
 sys/sys/ioccom.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list