Module Name:    src
Committed By:   ad
Date:           Sat Nov 30 20:45:49 UTC 2019

Modified Files:
        src/sys/kern: tty_ptm.c

Log Message:
VOP_UNLOCK + vrele -> vput


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/kern/tty_ptm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/tty_ptm.c
diff -u src/sys/kern/tty_ptm.c:1.40 src/sys/kern/tty_ptm.c:1.41
--- src/sys/kern/tty_ptm.c:1.40	Fri Mar  1 11:06:57 2019
+++ src/sys/kern/tty_ptm.c	Sat Nov 30 20:45:49 2019
@@ -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 @@ pty_grant_slave(struct lwp *l, dev_t dev
 		error = VOP_SETATTR(vp, &vattr, lwp0.l_cred);
 		if (error) {
 			DPRINTF(("setattr %d\n", error));
-			VOP_UNLOCK(vp);
-			vrele(vp);
+			vput(vp);
 			return error;
 		}
 	}

Reply via email to