summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-12 20:57:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-12 20:57:44 +0000
commitd92a22088820bed9b2ad499b3fb0bf27bc9f8223 (patch)
tree23eefe8eebbc59fe8751ac9fee2b2e2dcfc20830 /sys/arch/mvme88k
parentbb9f20de9237688ceb64944e9fdca9bd454679c0 (diff)
all disksubr.c did their b_flags manipulation differently (and wrong).
correct and unify; ok thib miod
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r--sys/arch/mvme88k/mvme88k/disksubr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/mvme88k/disksubr.c b/sys/arch/mvme88k/mvme88k/disksubr.c
index 2e5633dd0d6..957220d411e 100644
--- a/sys/arch/mvme88k/mvme88k/disksubr.c
+++ b/sys/arch/mvme88k/mvme88k/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.49 2007/06/09 23:06:46 krw Exp $ */
+/* $OpenBSD: disksubr.c,v 1.50 2007/06/12 20:57:43 deraadt Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1995 Dale Rahn.
@@ -157,7 +157,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *),
}
if (error)
- return (error);
+ goto done;
bsdtocpulabel(lp, osdep);
@@ -176,6 +176,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *),
error = biowait(bp);
}
+done:
if (bp) {
bp->b_flags |= B_INVAL;
brelse(bp);