Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81968853
D9714.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
787 B
Referenced Files
None
Subscribers
None
D9714.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hn_nvs.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hn_nvs.c
+++ head/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
Sun, Dec 15, 12:50 AM (8 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091306
Default Alt Text
D9714.diff (787 B)
Attached To
Mode
D9714: hyperv/hn: Misaligned chimney sending buffers should not be used
Attached
Detach File
Event Timeline
Log In to Comment