Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Pass a correct dev_t arg to disk_ioctl().



details:   https://anonhg.NetBSD.org/src/rev/bd8fd78b1fa7
branches:  trunk
changeset: 372465:bd8fd78b1fa7
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Nov 30 17:01:56 2022 +0000

description:
Pass a correct dev_t arg to disk_ioctl().

Probably harmless.

diffstat:

 sys/arch/hp300/dev/rd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 297da0e63cd0 -r bd8fd78b1fa7 sys/arch/hp300/dev/rd.c
--- a/sys/arch/hp300/dev/rd.c   Wed Nov 30 16:37:44 2022 +0000
+++ b/sys/arch/hp300/dev/rd.c   Wed Nov 30 17:01:56 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rd.c,v 1.116 2022/11/30 16:37:44 tsutsui Exp $ */
+/*     $NetBSD: rd.c,v 1.117 2022/11/30 17:01:56 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.116 2022/11/30 16:37:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.117 2022/11/30 17:01:56 tsutsui Exp $");
 
 #include "opt_useleds.h"
 
@@ -1305,7 +1305,7 @@
        struct disklabel *lp = sc->sc_dkdev.dk_label;
        int error, flags;
 
-       error = disk_ioctl(&sc->sc_dkdev, rdpart(dev), cmd, data, flag, l);
+       error = disk_ioctl(&sc->sc_dkdev, dev, cmd, data, flag, l);
        if (error != EPASSTHROUGH)
                return error;
 



Home | Main Index | Thread Index | Old Index