From 7b18a71899debf9aa5f05256c19cf5c635d0ed09 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sun, 11 Dec 1994 01:36:53 +0000 Subject: Don't put objects that have no parent on the reverse_shadow_list. Problem identified and explained by Gene Stark (thanks Gene!). Submitted by: John Dyson --- sys/vm/vm_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 75c4079782c1..921a39e602b2 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_object.c,v 1.10 1994/11/06 05:07:50 davidg Exp $ + * $Id: vm_object.c,v 1.11 1994/11/25 07:58:27 davidg Exp $ */ /* @@ -985,7 +985,8 @@ vm_object_shadow(object, offset, length) * count. */ result->shadow = source; - TAILQ_INSERT_TAIL(&result->shadow->reverse_shadow_head, result, reverse_shadow_list); + if (source) + TAILQ_INSERT_TAIL(&result->shadow->reverse_shadow_head, result, reverse_shadow_list); /* * Store the offset into the source object, -- cgit v1.3