Page MenuHomeFreeBSD

D9714.id25507.diff
No OneTemporary

D9714.id25507.diff

Index: sys/dev/hyperv/netvsc/hn_nvs.c
===================================================================
--- sys/dev/hyperv/netvsc/hn_nvs.c
+++ sys/dev/hyperv/netvsc/hn_nvs.c
@@ -272,12 +272,17 @@
error = EIO;
goto cleanup;
}
- if (sectsz == 0) {
+ if (sectsz == 0 || sectsz % sizeof(uint32_t) != 0) {
/*
* Can't use chimney sending buffer; done!
*/
- if_printf(sc->hn_ifp, "zero chimney sending buffer "
- "section size\n");
+ if (sectsz == 0) {
+ if_printf(sc->hn_ifp, "zero chimney sending buffer "
+ "section size\n");
+ } else {
+ if_printf(sc->hn_ifp, "misaligned chimney sending "
+ "buffers, section size: %u\n", sectsz);
+ }
sc->hn_chim_szmax = 0;
sc->hn_chim_cnt = 0;
sc->hn_flags |= HN_FLAG_CHIM_CONNECTED;

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 9:23 PM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15547057
Default Alt Text
D9714.id25507.diff (772 B)

Event Timeline