summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2000-01-09 03:28:11 +0000
committeroster <oster@NetBSD.org>2000-01-09 03:28:11 +0000
commitb0caf96f873c3208864ca239581d70041387c0ad (patch)
tree882707b8b999f4428d71b0fa94a3fe322e4f448d /sys/dev/raidframe
parentfbd3b6b39659f1ac46034d51aee309ac87377aa7 (diff)
It's got to help to check the *right* value if you care what
RF_Malloc() is returning.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_paritylogging.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_paritylogging.c b/sys/dev/raidframe/rf_paritylogging.c
index 94480494605..a7b5308ede6 100644
--- a/sys/dev/raidframe/rf_paritylogging.c
+++ b/sys/dev/raidframe/rf_paritylogging.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_paritylogging.c,v 1.6 2000/01/08 22:57:31 oster Exp $ */
+/* $NetBSD: rf_paritylogging.c,v 1.7 2000/01/09 03:28:11 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -282,7 +282,7 @@ rf_ConfigureParityLogging(
}
for (i = 0; i < raidPtr->regionBufferPool.totalBuffers; i++) {
RF_Malloc(raidPtr->regionBufferPool.buffers[i], raidPtr->regionBufferPool.bufferSize * sizeof(char), (caddr_t));
- if (raidPtr->regionBufferPool.buffers == NULL) {
+ if (raidPtr->regionBufferPool.buffers[i] == NULL) {
rf_mutex_destroy(&raidPtr->regionBufferPool.mutex);
rf_cond_destroy(&raidPtr->regionBufferPool.cond);
for (j = 0; j < i; j++) {