summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-07-10 15:44:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-07-10 15:44:24 +0000
commitdaecd0b42fd45abd59955515d68a13c569c237d9 (patch)
tree0bcfd4f5f0218201975aaed0278500bc308cd39d /sys
parent67224b1768baf69f53b29f37b470b5d575c42aae (diff)
Don't brelse() a buf we don't own in readsgilabel() by mistake.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/sgi/disksubr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/sgi/sgi/disksubr.c b/sys/arch/sgi/sgi/disksubr.c
index d84cf398974..cb5bfb29b5f 100644
--- a/sys/arch/sgi/sgi/disksubr.c
+++ b/sys/arch/sgi/sgi/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.2 2007/06/20 18:15:46 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.3 2007/07/10 15:44:23 miod Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -225,10 +225,6 @@ finished:
return checkdisklabel(bp->b_data + LABELOFFSET, lp);
done:
- if (bp) {
- bp->b_flags |= B_INVAL;
- brelse(bp);
- }
return (msg);
}