Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81970630
D8631.id22558.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
462 B
Referenced Files
None
Subscribers
None
D8631.id22558.diff
View Options
Index: head/sys/dev/hyperv/vmbus/vmbus.c
===================================================================
--- head/sys/dev/hyperv/vmbus/vmbus.c
+++ head/sys/dev/hyperv/vmbus/vmbus.c
@@ -325,7 +325,13 @@
uint32_t
vmbus_gpadl_alloc(struct vmbus_softc *sc)
{
- return atomic_fetchadd_int(&sc->vmbus_gpadl, 1);
+ uint32_t gpadl;
+
+again:
+ gpadl = atomic_fetchadd_int(&sc->vmbus_gpadl, 1);
+ if (gpadl == 0)
+ goto again;
+ return (gpadl);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 7:38 PM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091810
Default Alt Text
D8631.id22558.diff (462 B)
Attached To
Mode
D8631: hyperv/vmbus: Make sure that the allocated GPADL is not zero.
Attached
Detach File
Event Timeline
Log In to Comment