Fix bug in wrong using of synchronisation primitives
=> reported by Jacek...
This commit is contained in:
parent
27ddfb29e6
commit
3729433b37
1 changed files with 1 additions and 1 deletions
|
@ -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]))
|
||||
|
|
Loading…
Add table
Reference in a new issue