From 01155bd72075d0bca4ffbb96fb27c96a31c8ecee Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sat, 29 Jun 1996 09:17:17 +0000 Subject: [PATCH] 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(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index c50e9368748..558d2b6cf3b 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; };