diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-06-07 03:41:53 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-06-07 03:41:53 +0000 |
commit | 703be0dea42fdedcc44500f2747e7f83894e2acb (patch) | |
tree | c635a5e305aeaf6cbea9543b5d2091599b0a2f4d /sys/arch/mvme88k | |
parent | 572bcf7550756be8a3c77f603b85107ecd0ed711 (diff) |
Comment 'fixes'. All bounds_check_with_label now identical except for
vax and alpha.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/mvme88k/disksubr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/mvme88k/disksubr.c b/sys/arch/mvme88k/mvme88k/disksubr.c index 5bc3d7021c7..9bd51b1dc56 100644 --- a/sys/arch/mvme88k/mvme88k/disksubr.c +++ b/sys/arch/mvme88k/mvme88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.42 2007/06/07 00:28:17 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.43 2007/06/07 03:41:52 krw Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 1995 Dale Rahn. @@ -275,8 +275,7 @@ bounds_check_with_label(struct buf *bp, struct disklabel *lp, bp->b_bcount = sz << DEV_BSHIFT; } - /* overwriting disk label ? */ - /* XXX should also protect bootstrap in first 8K */ + /* Overwriting disk label? */ if (bp->b_blkno + blockpersec(DL_GETPOFFSET(p), lp) <= labelsector && bp->b_blkno + blockpersec(DL_GETPOFFSET(p), lp) + sz > labelsector && (bp->b_flags & B_READ) == 0 && !wlabel) { |