From 3729433b371c6f202c8d80e97a3de83d3ef55794 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Fri, 1 Apr 2011 19:33:41 +0200 Subject: [PATCH] Fix bug in wrong using of synchronisation primitives => reported by Jacek... --- arch/x86/mm/page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/page.c b/arch/x86/mm/page.c index 99b010e2..6711bc47 100644 --- a/arch/x86/mm/page.c +++ b/arch/x86/mm/page.c @@ -156,7 +156,7 @@ int create_pgd(task_t* task, int copy) task->pgd = pgd; if (copy) { - spinlock_unlock(&curr_task->pgd_lock); + spinlock_lock(&curr_task->pgd_lock); for (i=KERNEL_SPACE/(1024*PAGE_SIZE); i<1024; i++) { if (!(curr_task->pgd->entries[i]))