Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/kern Pullup rev hand patch (requested by enami in t...



details:   https://anonhg.NetBSD.org/src/rev/ee6aa9b307c8
branches:  netbsd-1-6
changeset: 531148:ee6aa9b307c8
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Mar 15 05:25:14 2004 +0000

description:
Pullup rev hand patch (requested by enami in ticket #1617)

Fix LP64 bugs triggered by overflow.

diffstat:

 sys/kern/vfs_cache.c  |  7 ++++---
 sys/kern/vfs_getcwd.c |  6 +++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 4946fb968ae7 -r ee6aa9b307c8 sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c      Mon Mar 15 05:22:46 2004 +0000
+++ b/sys/kern/vfs_cache.c      Mon Mar 15 05:25:14 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_cache.c,v 1.35 2002/03/08 20:48:42 thorpej Exp $   */
+/*     $NetBSD: vfs_cache.c,v 1.35.8.1 2004/03/15 05:25:14 jmc Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.35 2002/03/08 20:48:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_cache.c,v 1.35.8.1 2004/03/15 05:25:14 jmc Exp $");
 
 #include "opt_ddb.h"
 #include "opt_revcache.h"
@@ -113,7 +113,8 @@
        struct namecache *ncp;
        struct nchashhead *ncpp;
        struct vnode *vp;
-       int vpid, error;
+       u_long vpid;
+       int error;
 
        if (!doingcache) {
                cnp->cn_flags &= ~MAKEENTRY;
diff -r 4946fb968ae7 -r ee6aa9b307c8 sys/kern/vfs_getcwd.c
--- a/sys/kern/vfs_getcwd.c     Mon Mar 15 05:22:46 2004 +0000
+++ b/sys/kern/vfs_getcwd.c     Mon Mar 15 05:25:14 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_getcwd.c,v 1.15.10.1 2004/03/15 05:22:25 jmc Exp $ */
+/* $NetBSD: vfs_getcwd.c,v 1.15.10.2 2004/03/15 05:25:19 jmc Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_getcwd.c,v 1.15.10.1 2004/03/15 05:22:25 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_getcwd.c,v 1.15.10.2 2004/03/15 05:25:19 jmc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -312,7 +312,7 @@
        struct vnode *lvp, *uvp = NULL;
        char *obp = *bpp;
        int error;
-       int vpid;
+       u_long vpid;
        
        lvp = *lvpp;
        



Home | Main Index | Thread Index | Old Index