diff options
-rw-r--r-- | sys/kern/kern_mbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index 592f949..84682de 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -442,8 +442,8 @@ mb_zinit_pack(void *mem, int size, int how) struct mbuf *m; m = (struct mbuf *)mem; /* m is virgin. */ - (void)uma_zalloc_arg(zone_clust, m, how); - if (m->m_ext.ext_buf == NULL) + if (uma_zalloc_arg(zone_clust, m, how) == NULL || + m->m_ext.ext_buf == NULL) return (ENOMEM); m->m_ext.ext_type = EXT_PACKET; /* Override. */ #ifdef INVARIANTS |