Index: sys/kern/kern_mbuf.c =================================================================== --- sys/kern/kern_mbuf.c +++ sys/kern/kern_mbuf.c @@ -33,8 +33,8 @@ #include "opt_param.h" #include +#include #include -#include #include #include #include @@ -409,6 +409,8 @@ struct mbuf *m; int i; + KASSERT(!dumping, ("%s: ran out of pre-allocated mbufs", __func__)); + q = arg; for (i = 0; i < count; i++) { @@ -444,6 +446,8 @@ void *clust; int i; + KASSERT(!dumping, ("%s: ran out of pre-allocated mbufs", __func__)); + for (i = 0; i < count; i++) { m = m_get(MT_DATA, M_NOWAIT); if (m == NULL)