Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Fix typo in ufs_rmdir that causes locking botche...
details: https://anonhg.NetBSD.org/src/rev/50fa8e726966
branches: trunk
changeset: 767382:50fa8e726966
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jul 17 22:00:38 2011 +0000
description:
Fix typo in ufs_rmdir that causes locking botches. This code should be
unreachable because the FS-independent code contains the same test... but
I'm not sure if that applies if nfsd is involved.
diffstat:
sys/ufs/ufs/ufs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r c87781b67b4a -r 50fa8e726966 sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c Sun Jul 17 20:54:30 2011 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c Sun Jul 17 22:00:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_vnops.c,v 1.193 2011/07/14 16:27:43 dholland Exp $ */
+/* $NetBSD: ufs_vnops.c,v 1.194 2011/07/17 22:00:38 dholland Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.193 2011/07/14 16:27:43 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.194 2011/07/17 22:00:38 dholland Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -1557,9 +1557,9 @@
*/
if (dp == ip || vp->v_mountedhere != NULL) {
if (dp == ip)
- vrele(vp);
+ vrele(dvp);
else
- vput(vp);
+ vput(dvp);
vput(vp);
return (EINVAL);
}
Home |
Main Index |
Thread Index |
Old Index