Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81970592
D8631.id22488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
447 B
Referenced Files
None
Subscribers
None
D8631.id22488.diff
View Options
Index: sys/dev/hyperv/vmbus/vmbus.c
===================================================================
--- sys/dev/hyperv/vmbus/vmbus.c
+++ sys/dev/hyperv/vmbus/vmbus.c
@@ -287,7 +287,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:32 PM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091907
Default Alt Text
D8631.id22488.diff (447 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