summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>1999-02-27 01:48:13 +0000
committeroster <oster@NetBSD.org>1999-02-27 01:48:13 +0000
commita76f56098ca0f4b7c72bfacab6d96ec843341f79 (patch)
tree28c2a2545c8eef204f79a9c3a98da6fbbce9b76a /sys/dev/raidframe
parentbc94ad4c5eb59310d92217913eeae02ead064773 (diff)
Do the VOP_UNLOCK() on an initialized vp, rather than random garbage.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_copyback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_copyback.c b/sys/dev/raidframe/rf_copyback.c
index 391c8bc4d72..bcfb0beb44f 100644
--- a/sys/dev/raidframe/rf_copyback.c
+++ b/sys/dev/raidframe/rf_copyback.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_copyback.c,v 1.4 1999/02/23 23:53:37 oster Exp $ */
+/* $NetBSD: rf_copyback.c,v 1.5 1999/02/27 01:48:13 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -128,7 +128,7 @@ rf_CopybackReconstructedData(raidPtr)
if (raidPtr->raid_cinfo[frow][fcol].ci_vp != NULL) {
printf("Closed the open device: %s\n",
raidPtr->Disks[frow][fcol].devname);
- VOP_UNLOCK(vp, 0);
+ VOP_UNLOCK(raidPtr->raid_cinfo[frow][fcol].ci_vp, 0);
(void) vn_close(raidPtr->raid_cinfo[frow][fcol].ci_vp,
FREAD | FWRITE, proc->p_ucred, proc);
}