From b0caf96f873c3208864ca239581d70041387c0ad Mon Sep 17 00:00:00 2001 From: oster Date: Sun, 9 Jan 2000 03:28:11 +0000 Subject: It's got to help to check the *right* value if you care what RF_Malloc() is returning. --- sys/dev/raidframe/rf_paritylogging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe') 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++) { -- cgit