summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-10-06 05:32:59 +0000
committeroster <oster@NetBSD.org>2002-10-06 05:32:59 +0000
commiteb9d6f5ffa7515ac8fdc0a6f087c8e9e9a0ca787 (patch)
tree4f73c85f56b4e3a2d751199b475cf0af58d66fbd /sys/dev/raidframe
parent0567afd1cfa09f8cbdbd99286578d1164df67b81 (diff)
Add a missing RF_LOCK_MUTEX().
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_reconstruct.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c
index aa1dec8e466..029e5446cbd 100644
--- a/sys/dev/raidframe/rf_reconstruct.c
+++ b/sys/dev/raidframe/rf_reconstruct.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconstruct.c,v 1.46 2002/10/06 05:23:55 oster Exp $ */
+/* $NetBSD: rf_reconstruct.c,v 1.47 2002/10/06 05:32:59 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.46 2002/10/06 05:23:55 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.47 2002/10/06 05:32:59 oster Exp $");
#include <sys/time.h>
#include <sys/buf.h>
@@ -433,6 +433,7 @@ rf_ReconstructInPlace(raidPtr, row, col)
return (EINVAL);
}
if (raidPtr->Disks[row][col].status == rf_ds_spared) {
+ RF_UNLOCK_MUTEX(raidPtr->mutex);
return (EINVAL);
}