Author: kib Date: Wed Apr 18 20:09:26 2018 New Revision: 332738 URL: https://svnweb.freebsd.org/changeset/base/332738
Log: Fix pmap_trm_alloc(M_ZERO). Sponsored by: The FreeBSD Foundation Modified: head/sys/i386/i386/pmap.c Modified: head/sys/i386/i386/pmap.c ============================================================================== --- head/sys/i386/i386/pmap.c Wed Apr 18 20:07:47 2018 (r332737) +++ head/sys/i386/i386/pmap.c Wed Apr 18 20:09:26 2018 (r332738) @@ -5630,6 +5630,8 @@ pmap_trm_alloc(size_t size, int flags) 0, 0, VMEM_ADDR_MIN, VMEM_ADDR_MAX, flags | M_FIRSTFIT, &res); if (error != 0) return (NULL); + if ((flags & M_ZERO) != 0) + bzero((void *)res, size); return ((void *)res); } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"