artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff8da2f
)
Don't double vput and panic after looking up "."
author
beck
<beck@openbsd.org>
Fri, 27 Jul 2018 01:44:19 +0000
(
01:44
+0000)
committer
beck
<beck@openbsd.org>
Fri, 27 Jul 2018 01:44:19 +0000
(
01:44
+0000)
sys/kern/vfs_syscalls.c
patch
|
blob
|
history
diff --git
a/sys/kern/vfs_syscalls.c
b/sys/kern/vfs_syscalls.c
index
ec5d7a8
..
768a567
100644
(file)
--- a/
sys/kern/vfs_syscalls.c
+++ b/
sys/kern/vfs_syscalls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfs_syscalls.c,v 1.29
5 2018/07/22 06:31:17 anton Exp $
*/
+/* $OpenBSD: vfs_syscalls.c,v 1.29
6 2018/07/27 01:44:19 beck Exp $
*/
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@
-945,7
+945,7
@@
sys_unveil(struct proc *p, void *v, register_t *retval)
/* release vref and lock from namei, but not vref from ppath_add */
if (nd.ni_vp)
vput(nd.ni_vp);
- if (nd.ni_dvp)
+ if (nd.ni_dvp
&& nd.ni_dvp != nd.ni_vp
)
vput(nd.ni_dvp);
return (error);
}