Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern VOP_UNLOCK + vrele -> vput
details: https://anonhg.NetBSD.org/src/rev/f2a561a81f6b
branches: trunk
changeset: 465631:f2a561a81f6b
user: ad <ad%NetBSD.org@localhost>
date: Sat Nov 30 20:45:49 2019 +0000
description:
VOP_UNLOCK + vrele -> vput
diffstat:
sys/kern/tty_ptm.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 950d9ae14959 -r f2a561a81f6b sys/kern/tty_ptm.c
--- a/sys/kern/tty_ptm.c Sat Nov 30 17:49:03 2019 +0000
+++ b/sys/kern/tty_ptm.c Sat Nov 30 20:45:49 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty_ptm.c,v 1.40 2019/03/01 11:06:57 pgoyette Exp $ */
+/* $NetBSD: tty_ptm.c,v 1.41 2019/11/30 20:45:49 ad Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_ptm.c,v 1.40 2019/03/01 11:06:57 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_ptm.c,v 1.41 2019/11/30 20:45:49 ad Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -234,8 +234,7 @@
error = VOP_SETATTR(vp, &vattr, lwp0.l_cred);
if (error) {
DPRINTF(("setattr %d\n", error));
- VOP_UNLOCK(vp);
- vrele(vp);
+ vput(vp);
return error;
}
}
Home |
Main Index |
Thread Index |
Old Index