Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146982896
D8563.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1017 B
Referenced Files
None
Subscribers
None
D8563.id.diff
View Options
Index: head/sys/dev/hyperv/vmbus/vmbus_chan.c
===================================================================
--- head/sys/dev/hyperv/vmbus/vmbus_chan.c
+++ head/sys/dev/hyperv/vmbus/vmbus_chan.c
@@ -453,7 +453,7 @@
failed:
vmbus_chan_clear_chmap(chan);
- if (chan->ch_bufring_gpadl) {
+ if (chan->ch_bufring_gpadl != 0) {
vmbus_chan_gpadl_disconnect(chan, chan->ch_bufring_gpadl);
chan->ch_bufring_gpadl = 0;
}
@@ -500,7 +500,6 @@
* Allocate GPADL id.
*/
gpadl = vmbus_gpadl_alloc(sc);
- *gpadl0 = gpadl;
/*
* Connect this GPADL to the target channel.
@@ -579,11 +578,13 @@
vmbus_chan_printf(chan, "gpadl_conn(chan%u) failed: %u\n",
chan->ch_id, status);
return EIO;
- } else {
- if (bootverbose) {
- vmbus_chan_printf(chan,
- "gpadl_conn(chan%u) succeeded\n", chan->ch_id);
- }
+ }
+
+ /* Done; commit the GPADL id. */
+ *gpadl0 = gpadl;
+ if (bootverbose) {
+ vmbus_chan_printf(chan, "gpadl_conn(chan%u) succeeded\n",
+ chan->ch_id);
}
return 0;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 8, 8:17 AM (52 m, 46 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29400231
Default Alt Text
D8563.id.diff (1017 B)
Attached To
Mode
D8563: hyperv/vmbus: Commit the GPADL id only after the connection succeeds.
Attached
Detach File
Event Timeline
Log In to Comment