Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpvfs Explicitly set *vpp to NULL in look...



details:   https://anonhg.NetBSD.org/src/rev/a0581a88cd98
branches:  trunk
changeset: 760756:a0581a88cd98
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jan 12 19:31:39 2011 +0000

description:
Explicitly set *vpp to NULL in lookup.  At least reluckup gets
upset if we don't explicitly nullify vpp in the error case.

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 7a0e17a737b7 -r a0581a88cd98 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Wed Jan 12 19:29:24 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Wed Jan 12 19:31:39 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpfs.c,v 1.84 2011/01/12 17:20:54 pooka Exp $        */
+/*     $NetBSD: rumpfs.c,v 1.85 2011/01/12 19:31:39 pooka Exp $        */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.84 2011/01/12 17:20:54 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.85 2011/01/12 19:31:39 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -645,6 +645,8 @@
        bool dotdot = (cnp->cn_flags & ISDOTDOT) != 0;
        int rv = 0;
 
+       *vpp = NULL;
+
        /* check for dot, return directly if the case */
        if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') {
                vref(dvp);



Home | Main Index | Thread Index | Old Index