diff options
| author | oster <oster@NetBSD.org> | 1999-08-14 21:44:24 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 1999-08-14 21:44:24 +0000 |
| commit | 4ba14d22b0fb208629a9d5bb6be09295047c6e95 (patch) | |
| tree | 2ca0e0ca39e9c164cf3f0547213d6dd328e2351a /sys/dev/raidframe | |
| parent | c97c41e5c8286dc7f320e4b6e7297da06b5ceb5d (diff) | |
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.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_reconmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_reconmap.c b/sys/dev/raidframe/rf_reconmap.c index fcd92491141..22b1961e937 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; |
