summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-06-08 18:35:25 +0000
committerdes <des@FreeBSD.org>2003-06-08 18:35:25 +0000
commit0f6d6f65338c4fa55aa7b7a541b6af8a1f9d6310 (patch)
tree272652e3da5de1b81acfcb6767902ac963591caa /sys/dev/vx
parent7a2a53be280c35184a8f114eb0b16ac8c587db99 (diff)
downloadFreeBSD-src-0f6d6f65338c4fa55aa7b7a541b6af8a1f9d6310.zip
FreeBSD-src-0f6d6f65338c4fa55aa7b7a541b6af8a1f9d6310.tar.gz
Revert part of rev 1.43. We want to fail gracefully if there is no packet
waiting in the interface queue. Submitted by: Yeasah Pell <yeasah@apocalypse.org>
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index 3106de0..9dbf07f 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -400,6 +400,9 @@ vxstart(ifp)
startagain:
/* Sneak a peek at the next packet */
m = ifp->if_snd.ifq_head;
+ if (m == NULL) {
+ return;
+ }
/* We need to use m->m_pkthdr.len, so require the header */
M_ASSERTPKTHDR(m);
OpenPOWER on IntegriCloud