Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105800518
D9714.id25507.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D9714.id25507.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9714: hyperv/hn: Misaligned chimney sending buffers should not be used
Attached
Detach File
Event Timeline
Log In to Comment