summaryrefslogtreecommitdiffstats
path: root/sys/dev/xen/netfront/netfront.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/xen/netfront/netfront.c')
-rw-r--r--sys/dev/xen/netfront/netfront.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index c3c8d92..440c189 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -822,8 +822,7 @@ network_alloc_rx_buffers(struct netfront_info *sc)
goto no_mbuf;
}
- m_cljget(m_new, M_NOWAIT, MJUMPAGESIZE);
- if ((m_new->m_flags & M_EXT) == 0) {
+ if (m_cljget(m_new, M_NOWAIT, MJUMPAGESIZE) == NULL) {
printf("%s: m_cljget failed\n", __func__);
m_freem(m_new);
OpenPOWER on IntegriCloud