diff options
author | dg <dg@FreeBSD.org> | 1996-06-29 09:17:17 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-06-29 09:17:17 +0000 |
commit | 5b37bd13e00bb27cd3cfb7de1374e53dac8d29ee (patch) | |
tree | 52f4994f28613ba14bb447f332f4f013065667fe | |
parent | 70d631930fb9f7651f7a1d011b97ec1e9aa3fb9c (diff) | |
download | FreeBSD-src-5b37bd13e00bb27cd3cfb7de1374e53dac8d29ee.zip FreeBSD-src-5b37bd13e00bb27cd3cfb7de1374e53dac8d29ee.tar.gz |
Make sure we have an object in the map entry before trying to trim pages
from it.
-rw-r--r-- | sys/vm/vm_pageout.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; }; |