Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/kern Pull up following revision(s) (requested by dh i...
details: https://anonhg.NetBSD.org/src/rev/80d0b09ab07e
branches: netbsd-8
changeset: 434096:80d0b09ab07e
user: martin <martin%NetBSD.org@localhost>
date: Mon Jul 10 13:02:47 2017 +0000
description:
Pull up following revision(s) (requested by dh in ticket #116):
sys/kern/vfs_lookup.c: revision 1.208
Fix vnode leak on error, introduced by the openat family changes in -r1.200.
>From mjg@freebsd.
diffstat:
sys/kern/vfs_lookup.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 53337b500b04 -r 80d0b09ab07e sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c Mon Jul 10 13:01:13 2017 +0000
+++ b/sys/kern/vfs_lookup.c Mon Jul 10 13:02:47 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_lookup.c,v 1.207 2017/06/01 02:45:13 chs Exp $ */
+/* $NetBSD: vfs_lookup.c,v 1.207.2.1 2017/07/10 13:02:47 martin Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.207 2017/06/01 02:45:13 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.207.2.1 2017/07/10 13:02:47 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_magiclinks.h"
@@ -673,8 +673,10 @@
}
/* NDAT may feed us with a non directory namei_getstartdir */
- if (startdir->v_type != VDIR)
+ if (startdir->v_type != VDIR) {
+ vrele(startdir);
return ENOTDIR;
+ }
vn_lock(startdir, LK_EXCLUSIVE | LK_RETRY);
Home |
Main Index |
Thread Index |
Old Index