It's got to help to check the *right* value if you care what

RF_Malloc() is returning.
This commit is contained in:
oster 2000-01-09 03:28:11 +00:00
parent fbd3b6b396
commit b0caf96f87

View File

@ -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++) {