diff --git a/sys/kern/subr_percpu.c b/sys/kern/subr_percpu.c index d7a35ae6c6b2..bcb5ccacf5ac 100644 --- a/sys/kern/subr_percpu.c +++ b/sys/kern/subr_percpu.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_percpu.c,v 1.19 2019/09/18 15:33:32 kamil Exp $ */ +/* $NetBSD: subr_percpu.c,v 1.20 2019/12/05 03:21:08 riastradh Exp $ */ /*- * Copyright (c)2007,2008 YAMAMOTO Takashi, @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.19 2019/09/18 15:33:32 kamil Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_percpu.c,v 1.20 2019/12/05 03:21:08 riastradh Exp $"); #include #include @@ -149,7 +149,7 @@ percpu_cpu_enlarge(size_t size) where = xc_unicast(0, percpu_cpu_swap, ci, &pcc, ci); xc_wait(where); } - KASSERT(pcc.pcc_size < size); + KASSERT(pcc.pcc_size <= size); if (pcc.pcc_data != NULL) { kmem_free(pcc.pcc_data, pcc.pcc_size); }