Module Name: src
Committed By: riastradh
Date: Tue May 9 13:14:14 UTC 2023
Modified Files:
src/sys/dev/dkwedge: dk.c
Log Message:
dk(4): Fix typo: sc_state, not sc_satte.
Had tested a patch series, but not every patch in it, and I
inadvertently fixed the typo in a later patch in the series, not in
the one I committed.
To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 src/sys/dev/dkwedge/dk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/dkwedge/dk.c
diff -u src/sys/dev/dkwedge/dk.c:1.155 src/sys/dev/dkwedge/dk.c:1.156
--- src/sys/dev/dkwedge/dk.c:1.155 Tue May 9 12:49:00 2023
+++ src/sys/dev/dkwedge/dk.c Tue May 9 13:14:14 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: dk.c,v 1.155 2023/05/09 12:49:00 riastradh Exp $ */
+/* $NetBSD: dk.c,v 1.156 2023/05/09 13:14:14 riastradh Exp $ */
/*-
* Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.155 2023/05/09 12:49:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.156 2023/05/09 13:14:14 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_dkwedge.h"
@@ -1369,7 +1369,7 @@ dkclose(dev_t dev, int flags, int fmt, s
if (sc == NULL)
return ENXIO;
if (sc->sc_state != DKW_STATE_RUNNING &&
- sc->sc_satte != DKW_STATE_DYING)
+ sc->sc_state != DKW_STATE_DYING)
return ENXIO;
mutex_enter(&sc->sc_dk.dk_openlock);