Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/miscfs/procfs Pull up revision 1.30 (requested by f...



details:   https://anonhg.NetBSD.org/src/rev/38e16cdf5cbe
branches:  netbsd-1-4
changeset: 470426:38e16cdf5cbe
user:      he <he%NetBSD.org@localhost>
date:      Mon Feb 28 09:47:49 2000 +0000

description:
Pull up revision 1.30 (requested by fvdl):
  Fix a critical typo in the earlier procfs security fix.

diffstat:

 sys/miscfs/procfs/procfs_subr.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r b18b47131621 -r 38e16cdf5cbe sys/miscfs/procfs/procfs_subr.c
--- a/sys/miscfs/procfs/procfs_subr.c   Thu Feb 24 23:09:05 2000 +0000
+++ b/sys/miscfs/procfs/procfs_subr.c   Mon Feb 28 09:47:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_subr.c,v 1.26.2.1 2000/02/01 22:56:44 he Exp $  */
+/*     $NetBSD: procfs_subr.c,v 1.26.2.2 2000/02/28 09:47:49 he Exp $  */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou.  All rights reserved.
@@ -56,8 +56,8 @@
 struct vnode *procfs_hashget __P((pid_t, pfstype, struct mount *));
 
 LIST_HEAD(pfs_hashhead, pfsnode) *pfs_hashtbl;
-u_long ihash;          /* size of hash table - 1 */
-#define PFSPIDHASH(pid)        (&pfs_hashtbl[(pid) & ihash])
+u_long pfs_ihash;      /* size of hash table - 1 */
+#define PFSPIDHASH(pid)        (&pfs_hashtbl[(pid) & pfs_ihash])
 
 struct lock pfs_hashlock;
 struct simplelock pfs_hash_slock;
@@ -315,7 +315,8 @@
 procfs_hashinit()
 {
        lockinit(&pfs_hashlock, PINOD, "pfs_hashlock", 0, 0);
-       pfs_hashtbl = hashinit(desiredvnodes / 4, M_UFSMNT, M_WAITOK, &ihash);
+       pfs_hashtbl = hashinit(desiredvnodes / 4, M_UFSMNT, M_WAITOK,
+           &pfs_ihash);
        simple_lock_init(&pfs_hash_slock);
 }
 



Home | Main Index | Thread Index | Old Index