Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe It's got to help to check the *right* valu...



details:   https://anonhg.NetBSD.org/src/rev/2458865029fa
branches:  trunk
changeset: 480307:2458865029fa
user:      oster <oster%NetBSD.org@localhost>
date:      Sun Jan 09 03:28:11 2000 +0000

description:
It's got to help to check the *right* value if you care what
RF_Malloc() is returning.

diffstat:

 sys/dev/raidframe/rf_paritylogging.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 96095ac19215 -r 2458865029fa sys/dev/raidframe/rf_paritylogging.c
--- a/sys/dev/raidframe/rf_paritylogging.c      Sun Jan 09 03:17:12 2000 +0000
+++ b/sys/dev/raidframe/rf_paritylogging.c      Sun Jan 09 03:28:11 2000 +0000
@@ -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 @@
        }
        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++) {



Home | Main Index | Thread Index | Old Index