diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-10-09 23:12:20 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-10-09 23:12:20 +0000 |
commit | 6d02779e0590baebdde3e19932e3c81690bd3184 (patch) | |
tree | 95b6fa0141d60236d1deef1962a174da0413f341 | |
parent | bf38ee9591012aa48f684ed5a1a6fe1def8bf49c (diff) |
Fix comparison when start_lvl == 0
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index d103755f648..66640da3361 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ffs_alloc.c,v 1.30 2001/06/27 04:58:48 art Exp $ */ +/* $OpenBSD: ffs_alloc.c,v 1.31 2001/10/09 23:12:19 csapuntz Exp $ */ /* $NetBSD: ffs_alloc.c,v 1.11 1996/05/11 18:27:09 mycroft Exp $ */ /* @@ -408,7 +408,8 @@ ffs_reallocblks(v) ssize = len; } else { #ifdef DIAGNOSTIC - if (start_ap[start_lvl-1].in_lbn == idp->in_lbn) + if (start_lvl > 1 && + start_ap[start_lvl-1].in_lbn == idp->in_lbn) panic("ffs_reallocblk: start == end"); #endif ssize = len - (idp->in_off + 1); |