git: Kernel - Fix getvfsstat()/getfsstat() count w/ NULL buffer

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Jun 15 12:34:26 PDT 2018


commit 5c6a03baf163828d92efbd429dc7dcd9156fb6f9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jun 15 12:33:03 2018 -0700

    Kernel - Fix getvfsstat()/getfsstat() count w/ NULL buffer
    
    * Return the correct count when a NULL buffer is passed in,
      instead of a higher count.
    
    Reported-by: tdfbsd

Summary of changes:
 sys/kern/vfs_syscalls.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5c6a03baf163828d92efbd429dc7dcd9156fb6f9


-- 
DragonFly BSD source repository



More information about the Commits mailing list