summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm/if_hatm_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hatm/if_hatm_rx.c')
-rw-r--r--sys/dev/hatm/if_hatm_rx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/hatm/if_hatm_rx.c b/sys/dev/hatm/if_hatm_rx.c
index 15e568d..f42e821 100644
--- a/sys/dev/hatm/if_hatm_rx.c
+++ b/sys/dev/hatm/if_hatm_rx.c
@@ -116,6 +116,10 @@ hatm_rx(struct hatm_softc *sc, u_int cid, u_int flags, struct mbuf *m0,
}
goto drop;
}
+ if (m0 == NULL) {
+ sc->istats.no_rcv_mbuf++;
+ return;
+ }
if ((m0->m_len = len) == 0) {
sc->istats.empty_hbuf++;
OpenPOWER on IntegriCloud