Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178205088
D17957.1796254205.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
965 B
Referenced Files
None
Subscribers
None
D17957.1796254205.diff
View Options
Index: head/sys/kern/kern_mbuf.c
===================================================================
--- head/sys/kern/kern_mbuf.c
+++ head/sys/kern/kern_mbuf.c
@@ -410,8 +410,6 @@
struct mbuf *m;
int i;
- KASSERT(!dumping, ("%s: ran out of pre-allocated mbufs", __func__));
-
q = arg;
for (i = 0; i < count; i++) {
@@ -421,6 +419,8 @@
trash_init(m, q == &nd_mbufq ? MSIZE : nd_clsize, flags);
store[i] = m;
}
+ KASSERT((flags & M_WAITOK) == 0 || i == count,
+ ("%s: ran out of pre-allocated mbufs", __func__));
return (i);
}
@@ -447,8 +447,6 @@
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)
@@ -461,6 +459,8 @@
mb_ctor_clust(clust, nd_clsize, m, 0);
store[i] = m;
}
+ KASSERT((flags & M_WAITOK) == 0 || i == count,
+ ("%s: ran out of pre-allocated mbufs", __func__));
return (i);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 2, 11:30 PM (22 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42159559
Default Alt Text
D17957.1796254205.diff (965 B)
Attached To
Mode
D17957: netdump: Fix netdumping with INVARIANTS kernels
Attached
Detach File
Event Timeline