git: sys/sys: Fix IOCPARM_MAX

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Jun 2 16:47:32 PDT 2016


commit 74b5eb2394c72667536e2c7115616aa8a7e8b612
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
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
    598dc07f1ee077b425c2f447aeb3dfb632a1f2a3.
    
    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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/74b5eb2394c72667536e2c7115616aa8a7e8b612


-- 
DragonFly BSD source repository


More information about the Commits mailing list