Fixup the condition that prevented heartbeat & co. from attaching
authormikeb <mikeb@openbsd.org>
Fri, 5 Aug 2016 11:36:24 +0000 (11:36 +0000)
committermikeb <mikeb@openbsd.org>
Fri, 5 Aug 2016 11:36:24 +0000 (11:36 +0000)
sys/dev/pv/hyperv.c

index 94d2147..ddd21e3 100644 (file)
@@ -1628,7 +1628,7 @@ hv_attach_internal(struct hv_softc *sc)
        int i;
 
        TAILQ_FOREACH(ch, &sc->sc_channels, ch_entry) {
-               if (ch->ch_state != HV_CHANSTATE_OPENED)
+               if (ch->ch_state != HV_CHANSTATE_OFFERED)
                        continue;
                if (ch->ch_flags & CHF_MONITOR)
                        continue;