fix an uninitialized-variable problem in an error case.

pointed out by Simon Burge.
This commit is contained in:
chs 2001-10-15 00:37:51 +00:00
parent 2576af45bb
commit 1c97701b8b

View File

@ -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 @@ uvm_aio_aiodone(bp)
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);