Kernel - Fix getvfsstat()/getfsstat() count w/ NULL buffer
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Jun 2018 19:33:03 +0000 (12:33 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Jun 2018 19:33:03 +0000 (12:33 -0700)
commit5c6a03baf163828d92efbd429dc7dcd9156fb6f9
tree85da562458f448c5b355302aaf33729948fb798e
parenta5df26155abac22844b6a1f4e2d35f119e5c5f38
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
sys/kern/vfs_syscalls.c