summaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
diff options
context:
space:
mode:
authornonaka <nonaka@NetBSD.org>2021-06-10 07:48:00 +0000
committernonaka <nonaka@NetBSD.org>2021-06-10 07:48:00 +0000
commitd8b324ff9d1800bec7b4fb44970bded1cb1f22d7 (patch)
tree05dee17e1ba63d8006b66f612ef59b618f42979a /sys/dev/hyperv
parent2b2ffcbce4750e9640c624d38ad58bde5c7ac5e6 (diff)
hvs(4): Pass correct pointer of scsibus device to scsi_probe_bus().
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/hvs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hyperv/hvs.c b/sys/dev/hyperv/hvs.c
index bee86e00b55..06ded9cc49c 100644
--- a/sys/dev/hyperv/hvs.c
+++ b/sys/dev/hyperv/hvs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hvs.c,v 1.5 2021/04/24 23:36:54 thorpej Exp $ */
+/* $NetBSD: hvs.c,v 1.6 2021/06/10 07:48:00 nonaka Exp $ */
/* $OpenBSD: hvs.c,v 1.17 2017/08/10 17:22:48 mikeb Exp $ */
/*-
@@ -37,7 +37,7 @@
/* #define HVS_DEBUG_IO */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hvs.c,v 1.5 2021/04/24 23:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hvs.c,v 1.6 2021/06/10 07:48:00 nonaka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -833,7 +833,7 @@ hvs_scsi_probe(void *arg)
struct hvs_softc *sc = arg;
if (sc->sc_scsibus != NULL)
- scsi_probe_bus((void *)sc->sc_scsibus, -1, -1);
+ scsi_probe_bus(device_private(sc->sc_scsibus), -1, -1);
}
static void