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
..
2016-10-04 15:23:03 +00:00
2016-10-04 17:57:30 +00:00
2016-11-08 23:59:41 +00:00
2016-12-27 20:22:17 +00:00
2016-11-08 23:59:41 +00:00
2016-09-18 07:37:00 +00:00
2016-07-27 11:40:06 +00:00
2016-11-08 23:59:41 +00:00
2016-10-11 17:00:29 +00:00
2016-10-24 16:40:27 +00:00
2016-12-27 20:22:17 +00:00
2016-12-27 20:22:17 +00:00
2016-07-26 17:23:49 +00:00
2016-04-29 22:15:33 +00:00
2016-11-08 23:59:41 +00:00
2016-04-14 17:07:26 +00:00
2016-10-21 18:27:30 +00:00
2016-08-17 10:14:22 +00:00
2016-12-29 16:35:49 +00:00