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);