summaryrefslogtreecommitdiffstats
path: root/sys/isofs/udf/udf_vfsops.c
diff options
context:
space:
mode:
authorpedro <pedro@openbsd.org>2006-08-07 15:50:42 +0000
committerpedro <pedro@openbsd.org>2006-08-07 15:50:42 +0000
commit55d5edecd6e83dc685ab812adb2c4d44bf6ab02b (patch)
treef15e3de2c9580a9e72df894df2f949d2c6abbbe6 /sys/isofs/udf/udf_vfsops.c
parentFix use-after-free bug, which was triggered with too (diff)
downloadwireguard-openbsd-55d5edecd6e83dc685ab812adb2c4d44bf6ab02b.tar.xz
wireguard-openbsd-55d5edecd6e83dc685ab812adb2c4d44bf6ab02b.zip
Revert last commit
Diffstat (limited to 'sys/isofs/udf/udf_vfsops.c')
-rw-r--r--sys/isofs/udf/udf_vfsops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c
index 75777c404b7..fe665d99bb4 100644
--- a/sys/isofs/udf/udf_vfsops.c
+++ b/sys/isofs/udf/udf_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf_vfsops.c,v 1.22 2006/08/06 18:42:01 thib Exp $ */
+/* $OpenBSD: udf_vfsops.c,v 1.23 2006/08/07 15:50:42 pedro Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -401,10 +401,7 @@ bail:
}
if (bp != NULL)
brelse(bp);
-
- vn_lock(devvp, LK_EXCLUSIVE|LK_RETRY, p);
VOP_CLOSE(devvp, FREAD, FSCRED, p);
- VOP_UNLOCK(devvp, 0, p);
return (error);
}