artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e217601
)
Use NULL instead of 0 to clear v_socket pointer (which actually clears all
author
claudio
<claudio@openbsd.org>
Fri, 29 Jan 2021 10:47:24 +0000
(10:47 +0000)
committer
claudio
<claudio@openbsd.org>
Fri, 29 Jan 2021 10:47:24 +0000
(10:47 +0000)
of the v_un pointers).
OK jsg@ mvs@
sys/kern/vfs_subr.c
patch
|
blob
|
history
diff --git
a/sys/kern/vfs_subr.c
b/sys/kern/vfs_subr.c
index
e9ee665
..
2a6adab
100644
(file)
--- a/
sys/kern/vfs_subr.c
+++ b/
sys/kern/vfs_subr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vfs_subr.c,v 1.30
3 2020/08/23 09:35:32 kn Exp $
*/
+/* $OpenBSD: vfs_subr.c,v 1.30
4 2021/01/29 10:47:24 claudio Exp $
*/
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@
-453,7
+453,7
@@
getnewvnode(enum vtagtype tag, struct mount *mp, const struct vops *vops,
splx(s);
#endif
vp->v_flag = 0;
- vp->v_socket =
0
;
+ vp->v_socket =
NULL
;
}
cache_purge(vp);
vp->v_type = VNON;