From 867529addcb60d59dfa383c4c693cc4c5b802ff6 Mon Sep 17 00:00:00 2001 From: dg Date: Sun, 12 Nov 1995 08:58:58 +0000 Subject: Moved vm_map_lock call to inside the splhigh protection in vm_map_find(). This closes a probably rare but nonetheless real window that would result in a process hanging or the system panicing. Reviewed by: dyson, davidg Submitted by: kato@eclogite.eps.nagoya-u.ac.jp (KATO Takenori) --- sys/vm/vm_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 2c04dff..309c9af 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_map.c,v 1.24 1995/08/26 23:18:38 bde Exp $ + * $Id: vm_map.c,v 1.25 1995/10/23 05:35:44 dyson Exp $ */ /* @@ -765,11 +765,11 @@ vm_map_find(map, object, offset, addr, length, find_space) int result, s = 0; start = *addr; - vm_map_lock(map); if (map == kmem_map) s = splhigh(); + vm_map_lock(map); if (find_space) { if (vm_map_findspace(map, start, length, addr)) { vm_map_unlock(map); -- cgit v1.1