Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hyperv hvs(4): Pass correct pointer of scsibus devic...



details:   https://anonhg.NetBSD.org/src/rev/a6a74cce0139
branches:  trunk
changeset: 983834:a6a74cce0139
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Thu Jun 10 07:48:00 2021 +0000

description:
hvs(4): Pass correct pointer of scsibus device to scsi_probe_bus().

diffstat:

 sys/dev/hyperv/hvs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2d34b86fe179 -r a6a74cce0139 sys/dev/hyperv/hvs.c
--- a/sys/dev/hyperv/hvs.c      Thu Jun 10 07:21:07 2021 +0000
+++ b/sys/dev/hyperv/hvs.c      Thu Jun 10 07:48:00 2021 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index