Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/kern Pull up revision 1.163 (requested by christos):



details:   https://anonhg.NetBSD.org/src/rev/c3eb472aeb79
branches:  netbsd-1-5
changeset: 492738:c3eb472aeb79
user:      he <he%NetBSD.org@localhost>
date:      Sat Feb 09 19:20:34 2002 +0000

description:
Pull up revision 1.163 (requested by christos):
  Widen cr_ref to prevent overflow.

diffstat:

 sys/kern/vfs_subr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 412f982d39ac -r c3eb472aeb79 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Sat Feb 09 19:20:17 2002 +0000
+++ b/sys/kern/vfs_subr.c       Sat Feb 09 19:20:34 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.128.2.6 2001/08/16 16:03:45 tv Exp $    */
+/*     $NetBSD: vfs_subr.c,v 1.128.2.7 2002/02/09 19:20:34 he Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -2007,7 +2007,7 @@
                        return (EPERM);
                np = &nep->ne_defexported;
                np->netc_exflags = argp->ex_flags;
-               np->netc_anon = argp->ex_anon;
+               crcvt(&np->netc_anon, &argp->ex_anon);
                np->netc_anon.cr_ref = 1;
                mp->mnt_flag |= MNT_DEFEXPORTED;
                return (0);
@@ -2075,7 +2075,7 @@
                goto out;
        }
        np->netc_exflags = argp->ex_flags;
-       np->netc_anon = argp->ex_anon;
+       crcvt(&np->netc_anon, &argp->ex_anon);
        np->netc_anon.cr_ref = 1;
        return (0);
 out:



Home | Main Index | Thread Index | Old Index