diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 2a587b3224e3..8a069612eac3 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -255,7 +255,6 @@ static inline int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) | |||
255 | /* | 255 | /* |
256 | * Link in the new vma and copy the page table entries. | 256 | * Link in the new vma and copy the page table entries. |
257 | */ | 257 | */ |
258 | spin_lock(&mm->page_table_lock); | ||
259 | *pprev = tmp; | 258 | *pprev = tmp; |
260 | pprev = &tmp->vm_next; | 259 | pprev = &tmp->vm_next; |
261 | 260 | ||
@@ -265,7 +264,6 @@ static inline int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) | |||
265 | 264 | ||
266 | mm->map_count++; | 265 | mm->map_count++; |
267 | retval = copy_page_range(mm, oldmm, tmp); | 266 | retval = copy_page_range(mm, oldmm, tmp); |
268 | spin_unlock(&mm->page_table_lock); | ||
269 | 267 | ||
270 | if (tmp->vm_ops && tmp->vm_ops->open) | 268 | if (tmp->vm_ops && tmp->vm_ops->open) |
271 | tmp->vm_ops->open(tmp); | 269 | tmp->vm_ops->open(tmp); |