diff options
-rw-r--r-- | sys/dev/pv/hyperv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c index 0a737e8ff0c..7641751d56d 100644 --- a/sys/dev/pv/hyperv.c +++ b/sys/dev/pv/hyperv.c @@ -700,7 +700,7 @@ hv_vmbus_connect(struct hv_softc *sc) sc->sc_revents = (u_long *)((caddr_t)sc->sc_events + (PAGE_SIZE >> 1)); sc->sc_monitor[0] = km_alloc(PAGE_SIZE, &kv_any, &kp_zero, &kd_nowait); - if (sc->sc_monitor == NULL) { + if (sc->sc_monitor[0] == NULL) { printf(": failed to allocate monitor page 1\n"); goto errout; } @@ -710,7 +710,7 @@ hv_vmbus_connect(struct hv_softc *sc) } sc->sc_monitor[1] = km_alloc(PAGE_SIZE, &kv_any, &kp_zero, &kd_nowait); - if (sc->sc_monitor == NULL) { + if (sc->sc_monitor[1] == NULL) { printf(": failed to allocate monitor page 2\n"); goto errout; } |