kib e1aff3b457 The callers of kern_getfsstat(UIO_SYSSPACE) expect that *buf always
returns memory which must be freed, regardless of the error.  Assign
NULL to *buf in case we are not going to allocate any memory due to
invalid mode.

Reported and tested by:	pho
Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	3 weeks (together with r310638)
Differential revision:	https://reviews.freebsd.org/D9042
2017-01-04 16:09:45 +00:00
..
2017-01-03 21:00:24 +00:00
2017-01-03 16:46:51 +00:00
2016-12-27 20:22:17 +00:00
2017-01-04 03:35:39 +00:00
2016-12-21 01:39:11 +00:00
2016-12-26 11:06:41 +00:00
2016-11-26 23:15:11 +00:00
2016-12-10 03:31:38 +00:00
2017-01-03 21:36:15 +00:00