Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7-0]: src/sys/fs/tmpfs Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/49296e492546
branches:  netbsd-7-0
changeset: 801073:49296e492546
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Nov 08 01:27:10 2015 +0000

description:
Pull up following revision(s) (requested by leot in ticket #1023):
        sys/fs/tmpfs/tmpfs_subr.c: revision 1.101
Make sure that nde->td_node is NULL for asserts.
Thanks and from Mindaugas Rasiukevicius.
Fixes PR kern/50381.

diffstat:

 sys/fs/tmpfs/tmpfs_subr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 256e53deacf3 -r 49296e492546 sys/fs/tmpfs/tmpfs_subr.c
--- a/sys/fs/tmpfs/tmpfs_subr.c Sun Nov 08 00:38:34 2015 +0000
+++ b/sys/fs/tmpfs/tmpfs_subr.c Sun Nov 08 01:27:10 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tmpfs_subr.c,v 1.96.4.1 2014/12/22 02:05:08 msaitoh Exp $      */
+/*     $NetBSD: tmpfs_subr.c,v 1.96.4.1.2.1 2015/11/08 01:27:10 riz Exp $      */
 
 /*
  * Copyright (c) 2005-2013 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.96.4.1 2014/12/22 02:05:08 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.96.4.1.2.1 2015/11/08 01:27:10 riz Exp $");
 
 #include <sys/param.h>
 #include <sys/cprng.h>
@@ -451,6 +451,7 @@
        nde->td_namelen = len;
        memcpy(nde->td_name, name, len);
        nde->td_seq = TMPFS_DIRSEQ_NONE;
+       nde->td_node = NULL; /* for asserts */
 
        *de = nde;
        return 0;



Home | Main Index | Thread Index | Old Index