diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-12-06 10:38:09 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2016-12-06 10:38:09 +0000 |
commit | 86a4783f87f775e313d0bbc29e531b95928fc240 (patch) | |
tree | d8b74193ba24faeb2f49fd63e2ca3286738924b3 | |
parent | 25271f2ecc8698fc66a7f7cc77257748908df04b (diff) |
The kvop is not mandatory to query the type, fixes hostctl -t on vmm(4) VMs.
OK mikeb@
-rw-r--r-- | sys/dev/pv/pvbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/pvbus.c b/sys/dev/pv/pvbus.c index 1be95e4c064..594ca5e222c 100644 --- a/sys/dev/pv/pvbus.c +++ b/sys/dev/pv/pvbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pvbus.c,v 1.14 2016/10/27 16:17:43 reyk Exp $ */ +/* $OpenBSD: pvbus.c,v 1.15 2016/12/06 10:38:08 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -324,7 +324,7 @@ pvbus_minor(struct pvbus_softc *sc, dev_t dev) for (hvid = 0, cnt = 0; hvid < PVBUS_MAX; hvid++) { hv = &sc->pvbus_hv[hvid]; - if (hv->hv_base == 0 || hv->hv_kvop == NULL) + if (hv->hv_base == 0) continue; if (minor(dev) == cnt++) return (hvid); |