Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Zero clear an array of vm_page * before passing it t...
details: https://anonhg.NetBSD.org/src/rev/e51064eb97d5
branches: trunk
changeset: 517765:e51064eb97d5
user: enami <enami%NetBSD.org@localhost>
date: Mon Nov 19 02:44:27 2001 +0000
description:
Zero clear an array of vm_page * before passing it to VOP_GETPAGES().
diffstat:
sys/uvm/uvm_bio.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r dfce68dcec47 -r e51064eb97d5 sys/uvm/uvm_bio.c
--- a/sys/uvm/uvm_bio.c Mon Nov 19 02:17:18 2001 +0000
+++ b/sys/uvm/uvm_bio.c Mon Nov 19 02:44:27 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_bio.c,v 1.21 2001/11/10 07:36:59 lukem Exp $ */
+/* $NetBSD: uvm_bio.c,v 1.22 2001/11/19 02:44:27 enami Exp $ */
/*
* Copyright (c) 1998 Chuck Silvers.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.21 2001/11/10 07:36:59 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.22 2001/11/19 02:44:27 enami Exp $");
#include "opt_uvmhist.h"
@@ -434,6 +434,7 @@
umap->flags &= ~UMAP_MAPPING_CACHED;
pmap_remove(pmap_kernel(), va, va + ubc_winsize);
}
+ memset(pgs, 0, sizeof(pgs));
simple_lock(&uobj->vmobjlock);
error = VOP_GETPAGES(vp, trunc_page(offset), pgs, &npages, 0,
VM_PROT_READ|VM_PROT_WRITE, 0, gpflags);
Home |
Main Index |
Thread Index |
Old Index