diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-06-14 04:56:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-06-14 04:56:16 +0000 |
commit | 1c26a103229becc335544f22e5af5c2dcb668e8a (patch) | |
tree | 81a14ca77e978d388eaa4625cabc0ab965117d8f /sys/arch/mips64 | |
parent | e67b3e0824e002aedeb50ad27b4016293a8463a6 (diff) |
Fix label name in writedisklabel().
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/disksubr.c | 5 |
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); |