summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2009-06-25 15:49:26 +0000
committerthib <thib@openbsd.org>2009-06-25 15:49:26 +0000
commitaddc814ef495255faeea76b454c24b9fdd22d5ca (patch)
treeba674ffb4082b3dcec5195c8a2e4bb632f454594 /sys/miscfs
parentAnother copy another missing RTM_VERSION check. (diff)
downloadwireguard-openbsd-addc814ef495255faeea76b454c24b9fdd22d5ca.tar.xz
wireguard-openbsd-addc814ef495255faeea76b454c24b9fdd22d5ca.zip
backout the buf_acquire() does the bremfree() since all callers
where doing bremfree() befure calling buf_acquire(). This is causing us headache pinning down a bug that showed up when deraadt@ too cvs to current, and will have to be done anyway as a preperation for backouts. OK deraadt@
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/specfs/spec_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c
index ed5a617a7d6..c846d54ff70 100644
--- a/sys/miscfs/specfs/spec_vnops.c
+++ b/sys/miscfs/specfs/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.54 2009/06/06 18:06:22 art Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.55 2009/06/25 15:49:26 thib Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -439,6 +439,7 @@ loop:
continue;
if ((bp->b_flags & B_DELWRI) == 0)
panic("spec_fsync: not dirty");
+ bremfree(bp);
buf_acquire(bp);
splx(s);
bawrite(bp);