Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167508251
D8598.id22384.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
799 B
Referenced Files
None
Subscribers
None
D8598.id22384.diff
View Options
Index: sys/dev/hyperv/vmbus/vmbus_chan.c
===================================================================
--- sys/dev/hyperv/vmbus/vmbus_chan.c
+++ sys/dev/hyperv/vmbus/vmbus_chan.c
@@ -792,7 +792,7 @@
vmbus_chan_printf(chan,
"can not get msg hypercall for chclose(chan%u)\n",
chan->ch_id);
- return;
+ goto disconnect;
}
req = vmbus_msghc_dataptr(mh);
@@ -806,11 +806,13 @@
vmbus_chan_printf(chan,
"chclose(chan%u) msg hypercall exec failed: %d\n",
chan->ch_id, error);
- return;
- } else if (bootverbose) {
- vmbus_chan_printf(chan, "close chan%u\n", chan->ch_id);
+ goto disconnect;
}
+ if (bootverbose)
+ vmbus_chan_printf(chan, "chan%u closed\n", chan->ch_id);
+
+disconnect:
/*
* Disconnect the TX+RX bufrings from this channel.
*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 9:14 AM (16 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37128802
Default Alt Text
D8598.id22384.diff (799 B)
Attached To
Mode
D8598: hyperv/vmbus: Always try disconnect/free bufring memory upon channel close
Attached
Detach File
Event Timeline
Log In to Comment