and just return;
OK mglocker@
-/* $OpenBSD: if_malo.c,v 1.62 2008/07/27 13:02:37 mglocker Exp $ */
+/* $OpenBSD: if_malo.c,v 1.63 2008/07/29 10:05:38 thib Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
/* prepare mbuf */
m = m_devget(sc->sc_data + rxdesc->pkgoffset - ETHER_ALIGN,
rxdesc->pkglen + ETHER_ALIGN, 0, ifp, NULL);
+ if (m == NULL) {
+ DPRINTF(1, "RX m_devget failed!\n");
+ ifp->if_ierrors++;
+ return;
+ }
m_adj(m, ETHER_ALIGN);
#if NBPFILTER > 0