svn commit: r188047 - projects/releng_7_xen/sys/dev/xen/netfront
Kip Macy
kmacy at FreeBSD.org
Mon Feb 2 20:37:46 PST 2009
Author: kmacy
Date: Tue Feb 3 04:37:45 2009
New Revision: 188047
URL: http://svn.freebsd.org/changeset/base/188047
Log:
IFC 188036
break out of loop if we run out of mbufs
Modified:
projects/releng_7_xen/sys/dev/xen/netfront/netfront.c
Modified: projects/releng_7_xen/sys/dev/xen/netfront/netfront.c
==============================================================================
--- projects/releng_7_xen/sys/dev/xen/netfront/netfront.c Tue Feb 3 04:36:23 2009 (r188046)
+++ projects/releng_7_xen/sys/dev/xen/netfront/netfront.c Tue Feb 3 04:37:45 2009 (r188047)
@@ -1235,11 +1235,12 @@ xennet_get_responses(struct netfront_inf
gnttab_release_grant_reference(&np->gref_rx_head, ref);
next:
- if (m != NULL) {
- m->m_len = rx->status;
- m->m_data += rx->offset;
- m0->m_pkthdr.len += rx->status;
- }
+ if (m == NULL)
+ break;
+
+ m->m_len = rx->status;
+ m->m_data += rx->offset;
+ m0->m_pkthdr.len += rx->status;
if (!(rx->flags & NETRXF_more_data))
break;
More information about the svn-src-projects
mailing list