diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-02-11 05:07:37 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2018-02-11 05:07:37 +0000 |
commit | e26f0595cc16086ba7b487cdf929ea615732f12d (patch) | |
tree | b7cd951aebcfc32581ae86cf35198b3372603df2 /sys/dev/sdmmc | |
parent | f0bafd370452168f1e3dde5ae78daf0af7eea918 (diff) |
Update the packet header length as well as the mbuf length on
receive. Did that everywhere else but missed it here.
Diffstat (limited to 'sys/dev/sdmmc')
-rw-r--r-- | sys/dev/sdmmc/if_bwfm_sdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/if_bwfm_sdio.c b/sys/dev/sdmmc/if_bwfm_sdio.c index 6271b20ca13..beb6c7a2a7e 100644 --- a/sys/dev/sdmmc/if_bwfm_sdio.c +++ b/sys/dev/sdmmc/if_bwfm_sdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_sdio.c,v 1.4 2018/02/09 02:21:16 patrick Exp $ */ +/* $OpenBSD: if_bwfm_sdio.c,v 1.5 2018/02/11 05:07:36 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -1138,7 +1138,7 @@ bwfm_sdio_rx_glom(struct bwfm_sdio_softc *sc, uint16_t *sublen, int nsub) ml_purge(&ml); return; } - m->m_len = letoh16(sublen[i]); + m->m_len = m->m_pkthdr.len = letoh16(sublen[i]); } /* TODO: Verify actual superframe header */ |