summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/mtd8xx.c
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2004-05-26 19:56:31 +0000
committerbrad <brad@openbsd.org>2004-05-26 19:56:31 +0000
commita07b87d97bd0b7fbbf18bb6e13cb04d652affe3b (patch)
treed8a6a0668cb7de1fa791b39e7cab9f5b975d21ce /sys/dev/ic/mtd8xx.c
parentbetter code for calling ctors (diff)
downloadwireguard-openbsd-a07b87d97bd0b7fbbf18bb6e13cb04d652affe3b.tar.xz
wireguard-openbsd-a07b87d97bd0b7fbbf18bb6e13cb04d652affe3b.zip
use ETHER_ALIGN
Diffstat (limited to 'sys/dev/ic/mtd8xx.c')
-rw-r--r--sys/dev/ic/mtd8xx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c
index b211b001233..2207abae4a1 100644
--- a/sys/dev/ic/mtd8xx.c
+++ b/sys/dev/ic/mtd8xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtd8xx.c,v 1.3 2003/11/17 13:21:29 espie Exp $ */
+/* $OpenBSD: mtd8xx.c,v 1.4 2004/05/26 19:56:31 brad Exp $ */
/*
* Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru>
@@ -950,15 +950,15 @@ mtd_rxeof(struct mtd_softc *sc)
0, sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_mapsize,
BUS_DMASYNC_POSTREAD);
- m0 = m_devget(mtod(m, char *) - 2, total_len + 2, 0, ifp,
- NULL);
+ m0 = m_devget(mtod(m, char *) - ETHER_ALIGN, total_len + ETHER_ALIGN,
+ 0, ifp, NULL);
mtd_newbuf(sc, i, m);
i = (i + 1) % MTD_RX_LIST_CNT;
if (m0 == NULL) {
ifp->if_ierrors++;
continue;
}
- m_adj(m0, 2);
+ m_adj(m0, ETHER_ALIGN);
m = m0;
ifp->if_ipackets++;