Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm pgo_get needs the page array to be initialized.
details: https://anonhg.NetBSD.org/src/rev/4d89da582bb8
branches: trunk
changeset: 751907:4d89da582bb8
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Feb 08 00:02:50 2010 +0000
description:
pgo_get needs the page array to be initialized.
diffstat:
sys/uvm/uvm_fault.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 199b098cdcab -r 4d89da582bb8 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Mon Feb 08 00:01:39 2010 +0000
+++ b/sys/uvm/uvm_fault.c Mon Feb 08 00:02:50 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.165 2010/02/08 00:01:39 mlelstv Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.166 2010/02/08 00:02:50 mlelstv Exp $ */
/*
*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.165 2010/02/08 00:01:39 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166 2010/02/08 00:02:50 mlelstv Exp $");
#include "opt_uvmhist.h"
@@ -1780,6 +1780,7 @@
uvmexp.fltget++;
gotpages = 1;
+ pg = NULL;
uoff = (ufi->orig_rvaddr - ufi->entry->start) + ufi->entry->offset;
error = uobj->pgops->pgo_get(uobj, uoff, &pg, &gotpages,
0, flt->access_type & MASK(ufi->entry), ufi->entry->advice,
Home |
Main Index |
Thread Index |
Old Index