rtentry_zinit: don't blindly pass through M_ZERO to counter alloc
This commit is contained in:
parent
978910109d
commit
58378a8971
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334829
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user