Page MenuHomeFreeBSD

D38551.diff
No OneTemporary

D38551.diff

diff --git a/sys/dev/hyperv/utilities/vmbus_ic.c b/sys/dev/hyperv/utilities/vmbus_ic.c
--- a/sys/dev/hyperv/utilities/vmbus_ic.c
+++ b/sys/dev/hyperv/utilities/vmbus_ic.c
@@ -59,6 +59,9 @@
uint32_t sel_fw_ver, sel_msg_ver;
bool has_fw_ver, has_msg_ver;
+ has_fw_ver = false;
+ has_msg_ver = false;
+
/*
* Preliminary message verification.
*/
@@ -92,7 +95,6 @@
/*
* Find the best match framework version.
*/
- has_fw_ver = false;
for (i = 0; i < nego->ic_fwver_cnt; ++i) {
if (VMBUS_ICVER_LE(nego->ic_ver[i], fw_ver)) {
if (!has_fw_ver) {
@@ -111,9 +113,8 @@
}
/*
- * Fine the best match message version.
+ * Find the best match message version.
*/
- has_msg_ver = false;
for (i = nego->ic_fwver_cnt;
i < nego->ic_fwver_cnt + nego->ic_msgver_cnt; ++i) {
if (VMBUS_ICVER_LE(nego->ic_ver[i], msg_ver)) {

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 20, 12:49 AM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14726427
Default Alt Text
D38551.diff (855 B)

Event Timeline