diff options
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 131b53fca84..9aa4e907c53 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.34 2004/10/13 22:49:24 miod Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.35 2004/11/21 18:50:43 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -680,13 +680,12 @@ rl_rxeof(sc) if (m == NULL) ifp->if_ierrors++; else { + m_adj(m, ETHER_ALIGN); m_copyback(m, wrap, total_len - wrap, sc->rl_cdata.rl_rx_buf); m = m_pullup(m, sizeof(struct ether_header)); if (m == NULL) ifp->if_ierrors++; - else - m_adj(m, ETHER_ALIGN); } cur_rx = (total_len - wrap + ETHER_CRC_LEN); } else { |