From 1c26a103229becc335544f22e5af5c2dcb668e8a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 14 Jun 2007 04:56:16 +0000 Subject: Fix label name in writedisklabel(). --- sys/arch/mips64/mips64/disksubr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3