Make sure we have an object in the map entry before trying to trim pages
from it.
This commit is contained in:
parent
0cd02d20a1
commit
01155bd720
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16834
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user