diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-08-02 10:59:32 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-08-02 10:59:32 +0000 |
commit | 9dda5c595b41eed3745b4cb17c1accc1db26db6f (patch) | |
tree | cc2ee0101ebcebf42c5285d5506caf73c5d3fc25 /sys/dev/pcmcia/if_malo.c | |
parent | eb8632e903ca3d502f22628f1d84de26e4a0f1d0 (diff) |
ETHER_ALIGN the mbuf so that it works on strictalignment archs. This is a
quick hack because cmalo_rx() should use m_getdev() instead. OK mglocker@
Diffstat (limited to 'sys/dev/pcmcia/if_malo.c')
-rw-r--r-- | sys/dev/pcmcia/if_malo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index 2dea5c9c840..a10e5667d54 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.29 2007/08/01 11:30:22 mglocker Exp $ */ +/* $OpenBSD: if_malo.c,v 1.30 2007/08/02 10:59:31 claudio Exp $ */ /* * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> @@ -860,6 +860,7 @@ cmalo_rx(struct malo_softc *sc) } m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = rxdesc->pkglen; + m->m_data += ETHER_ALIGN; data = mtod(m, uint8_t *); bcopy(sc->sc_data + rxdesc->pkgoffset, data, m->m_pkthdr.len); |