diff options
author | Matt Macy <mmacy@FreeBSD.org> | 2018-06-08 05:17:06 +0000 |
---|---|---|
committer | Matt Macy <mmacy@FreeBSD.org> | 2018-06-08 05:17:06 +0000 |
commit | 58378a8971eb7b157196edadee782c11945a23bc (patch) | |
tree | 8e5f880be44d68bd795e29498633f700e360ce88 /sys/net | |
parent | 978910109d62cd781ab6f8a1955bdbb0d6011461 (diff) | |
download | src-58378a8971eb7b157196edadee782c11945a23bc.tar.gz src-58378a8971eb7b157196edadee782c11945a23bc.zip |
rtentry_zinit: don't blindly pass through M_ZERO to counter alloc
Notes
Notes:
svn path=/head/; revision=334829
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 06eaba334f3a..597e8e6646e3 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -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); |