Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102941259
D38551.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
855 B
Referenced Files
None
Subscribers
None
D38551.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D38551: hyperv: Fix Coverity issues in the Hyper-V driver
Attached
Detach File
Event Timeline
Log In to Comment