diff options
author | Linus Torvalds | 2018-07-21 14:48:45 -0700 |
---|---|---|
committer | Linus Torvalds | 2018-07-21 14:48:45 -0700 |
commit | 95faf6992df468f617edb788da8c21c6eed0dfa7 (patch) | |
tree | 121683c4e94117b9e41d31b0bc359c01a05412ba /mm/nommu.c | |
parent | 3928d4f5ee37cdc523894f6e549e6aae521d8980 (diff) |
mm: make vm_area_dup() actually copy the old vma data
.. and re-initialize th eanon_vma_chain head.
This removes some boiler-plate from the users, and also makes it clear
why it didn't need use the 'zalloc()' version.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/nommu.c')
-rw-r--r-- | mm/nommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 006e3fe65017..c2560e9cc803 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1476,7 +1476,6 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma, } /* most fields are the same, copy all, and then fixup */ - *new = *vma; *region = *vma->vm_region; new->vm_region = region; |