Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm fix an uninitialized-variable problem in an error case.
details: https://anonhg.NetBSD.org/src/rev/451b6dd94094
branches: trunk
changeset: 516070:451b6dd94094
user: chs <chs%NetBSD.org@localhost>
date: Mon Oct 15 00:37:51 2001 +0000
description:
fix an uninitialized-variable problem in an error case.
pointed out by Simon Burge.
diffstat:
sys/uvm/uvm_pager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r a3a7dea18b87 -r 451b6dd94094 sys/uvm/uvm_pager.c
--- a/sys/uvm/uvm_pager.c Sun Oct 14 23:13:21 2001 +0000
+++ b/sys/uvm/uvm_pager.c Mon Oct 15 00:37:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pager.c,v 1.50 2001/09/15 20:36:47 chs Exp $ */
+/* $NetBSD: uvm_pager.c,v 1.51 2001/10/15 00:37:51 chs Exp $ */
/*
*
@@ -325,7 +325,8 @@
simple_lock(slock);
uvm_lock_pageq();
} else if (error) {
- if (pgs[0]->pqflags & PQ_ANON) {
+ pg = pgs[0];
+ if (pg->pqflags & PQ_ANON) {
swslot = pg->uanon->an_swslot;
} else {
swslot = uao_find_swslot(pg->uobject, pg->offset);
Home |
Main Index |
Thread Index |
Old Index