summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-02-11 05:07:36 +0000
committerpatrick <patrick@openbsd.org>2018-02-11 05:07:36 +0000
commit4ecea62e533d77cce6813a46811bcdca8d03b143 (patch)
treeef9bbce90270dd4dcc3785b6c8252ee7425ff098 /sys
parentDocument how MAP_STACK will be used. All stacks must be mmap'd with (diff)
downloadwireguard-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.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sdmmc/if_bwfm_sdio.c4
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 */