From 4ba14d22b0fb208629a9d5bb6be09295047c6e95 Mon Sep 17 00:00:00 2001 From: oster Date: Sat, 14 Aug 1999 21:44:24 +0000 Subject: [PATCH] Fix an 'off-by-one' error in a RF_ASSERT which meant that a reconstruct would panic in the case where the stripe width was 1 block. --- sys/dev/raidframe/rf_reconmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/raidframe/rf_reconmap.c b/sys/dev/raidframe/rf_reconmap.c index fcd924911415..22b1961e9374 100644 --- a/sys/dev/raidframe/rf_reconmap.c +++ b/sys/dev/raidframe/rf_reconmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_reconmap.c,v 1.5 1999/08/13 03:41:57 oster Exp $ */ +/* $NetBSD: rf_reconmap.c,v 1.6 1999/08/14 21:44:24 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -139,7 +139,7 @@ rf_ReconMapUpdate(raidPtr, mapPtr, startSector, stopSector) RF_ReconMapListElem_t *p, *pt; RF_LOCK_MUTEX(mapPtr->mutex); - RF_ASSERT(startSector >= 0 && stopSector < mapPtr->sectorsInDisk && stopSector > startSector); + RF_ASSERT(startSector >= 0 && stopSector < mapPtr->sectorsInDisk && stopSector >= startSector); while (startSector <= stopSector) { i = startSector / mapPtr->sectorsPerReconUnit;