From 5b37bd13e00bb27cd3cfb7de1374e53dac8d29ee Mon Sep 17 00:00:00 2001 From: dg Date: Sat, 29 Jun 1996 09:17:17 +0000 Subject: Make sure we have an object in the map entry before trying to trim pages from it. --- sys/vm/vm_pageout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/vm/vm_pageout.c') diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index c50e936..558d2b6 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -65,7 +65,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_pageout.c,v 1.78 1996/06/24 04:30:24 dyson Exp $ + * $Id: vm_pageout.c,v 1.79 1996/06/26 05:39:26 dyson Exp $ */ /* @@ -539,7 +539,8 @@ vm_pageout_map_deactivate_pages(map, desired) break; if ((tmpe->is_sub_map == 0) && (tmpe->is_a_map == 0)) { obj = tmpe->object.vm_object; - vm_pageout_object_deactivate_pages(map, obj, desired, 0); + if (obj) + vm_pageout_object_deactivate_pages(map, obj, desired, 0); } tmpe = tmpe->next; }; -- cgit v1.1