Page MenuHomeFreeBSD

D8631.id22558.diff
No OneTemporary

D8631.id22558.diff

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

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)

Event Timeline