Page MenuHomeFreeBSD

D8631.id22488.diff
No OneTemporary

D8631.id22488.diff

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

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)

Event Timeline