diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2003-06-08 18:35:25 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2003-06-08 18:35:25 +0000 |
commit | 3f0a1da2f8786830420d85a9a30692f74a7f2a9b (patch) | |
tree | 272652e3da5de1b81acfcb6767902ac963591caa /sys/dev/vx | |
parent | 690f13f3c32f531c668c90b81872609bfb3761b7 (diff) | |
download | src-3f0a1da2f8786830420d85a9a30692f74a7f2a9b.tar.gz src-3f0a1da2f8786830420d85a9a30692f74a7f2a9b.zip |
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>
Notes
Notes:
svn path=/head/; revision=116062
Diffstat (limited to 'sys/dev/vx')
-rw-r--r-- | sys/dev/vx/if_vx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index 3106de04e64d..9dbf07f9a336 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); |