Author: mmacy Date: Fri Jun 8 05:17:06 2018 New Revision: 334829 URL: https://svnweb.freebsd.org/changeset/base/334829
Log: rtentry_zinit: don't blindly pass through M_ZERO to counter alloc Modified: head/sys/net/route.c Modified: head/sys/net/route.c ============================================================================== --- head/sys/net/route.c Fri Jun 8 05:01:09 2018 (r334828) +++ head/sys/net/route.c Fri Jun 8 05:17:06 2018 (r334829) @@ -235,7 +235,7 @@ rtentry_zinit(void *mem, int size, int how) { struct rtentry *rt = mem; - rt->rt_pksent = counter_u64_alloc(how); + rt->rt_pksent = counter_u64_alloc(how & ~M_ZERO); if (rt->rt_pksent == NULL) return (ENOMEM); _______________________________________________ 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"