diff options
author | 2018-02-11 05:07:36 +0000 | |
---|---|---|
committer | 2018-02-11 05:07:36 +0000 | |
commit | 4ecea62e533d77cce6813a46811bcdca8d03b143 (patch) | |
tree | ef9bbce90270dd4dcc3785b6c8252ee7425ff098 | |
parent | Document how MAP_STACK will be used. All stacks must be mmap'd with (diff) | |
download | wireguard-openbsd-4ecea62e533d77cce6813a46811bcdca8d03b143.tar.xz wireguard-openbsd-4ecea62e533d77cce6813a46811bcdca8d03b143.zip |
Update the packet header length as well as the mbuf length on
receive. Did that everywhere else but missed it here.
-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 */ |