Page MenuHomeFreeBSD

D17306.id.diff
No OneTemporary

D17306.id.diff

Index: head/sys/kern/kern_mbuf.c
===================================================================
--- head/sys/kern/kern_mbuf.c
+++ head/sys/kern/kern_mbuf.c
@@ -33,8 +33,8 @@
#include "opt_param.h"
#include <sys/param.h>
+#include <sys/conf.h>
#include <sys/malloc.h>
-#include <sys/types.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
#include <sys/domain.h>
@@ -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++) {
@@ -443,6 +445,8 @@
struct mbuf *m;
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);

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 24, 10:05 AM (1 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32071863
Default Alt Text
D17306.id.diff (742 B)

Event Timeline