summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-06-14 04:56:15 +0000
committermiod <miod@openbsd.org>2007-06-14 04:56:15 +0000
commit72d3d38566885770f3e77f4d16e82ea7d251aa59 (patch)
tree4b86c6a6d4bfe6776462558a3c8c2b976a52be4d
parentsome spaces in the way (diff)
downloadwireguard-openbsd-72d3d38566885770f3e77f4d16e82ea7d251aa59.tar.xz
wireguard-openbsd-72d3d38566885770f3e77f4d16e82ea7d251aa59.zip
Fix label name in writedisklabel().
-rw-r--r--sys/arch/mips64/mips64/disksubr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/disksubr.c b/sys/arch/mips64/mips64/disksubr.c
index 5907921a5b0..7ef6ea693db 100644
--- a/sys/arch/mips64/mips64/disksubr.c
+++ b/sys/arch/mips64/mips64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.57 2007/06/14 03:41:21 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.58 2007/06/14 04:56:15 miod Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -528,7 +528,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *),
if (msg) {
if (partoff == -1) {
error = EIO;
- goto error;
+ goto done;
}
/* Write it in the regular place with native byte order. */
@@ -544,6 +544,7 @@ writedisklabel(dev_t dev, void (*strat)(struct buf *),
(*strat)(bp);
error = biowait(bp);
+done:
if (bp) {
bp->b_flags |= B_INVAL;
brelse(bp);