aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ffec/if_ffec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ffec/if_ffec.c')
-rw-r--r--sys/dev/ffec/if_ffec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c
index 17fab283fc81..cf171a854406 100644
--- a/sys/dev/ffec/if_ffec.c
+++ b/sys/dev/ffec/if_ffec.c
@@ -850,7 +850,7 @@ ffec_rxfinish_onebuf(struct ffec_softc *sc, int len)
* biggest header is, instead of the whole 1530ish-byte frame.
*/
if (sc->fecflags & FECFLAG_RACC) {
- m->m_data = mtod(m, uint8_t *) + 2;
+ m_adj(m, 2);
} else {
src = mtod(m, uint8_t*);
dst = src - ETHER_ALIGN;