Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153748346
D17306.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
742 B
Referenced Files
None
Subscribers
None
D17306.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17306: netdump: Zone mbufs should be allocated before dump
Attached
Detach File
Event Timeline
Log In to Comment