rtentry_zinit: don't blindly pass through M_ZERO to counter alloc

This commit is contained in:
Matt Macy 2018-06-08 05:17:06 +00:00
parent 978910109d
commit 58378a8971
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334829

View File

@ -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);