diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mmap.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -2344,9 +2344,6 @@ int insert_vm_struct(struct mm_struct * mm, struct vm_area_struct * vma) | |||
2344 | security_vm_enough_memory_mm(mm, vma_pages(vma))) | 2344 | security_vm_enough_memory_mm(mm, vma_pages(vma))) |
2345 | return -ENOMEM; | 2345 | return -ENOMEM; |
2346 | 2346 | ||
2347 | if (vma->vm_file && uprobe_mmap(vma)) | ||
2348 | return -EINVAL; | ||
2349 | |||
2350 | vma_link(mm, vma, prev, rb_link, rb_parent); | 2347 | vma_link(mm, vma, prev, rb_link, rb_parent); |
2351 | return 0; | 2348 | return 0; |
2352 | } | 2349 | } |
@@ -2417,9 +2414,6 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap, | |||
2417 | if (new_vma->vm_file) { | 2414 | if (new_vma->vm_file) { |
2418 | get_file(new_vma->vm_file); | 2415 | get_file(new_vma->vm_file); |
2419 | 2416 | ||
2420 | if (uprobe_mmap(new_vma)) | ||
2421 | goto out_free_mempol; | ||
2422 | |||
2423 | if (vma->vm_flags & VM_EXECUTABLE) | 2417 | if (vma->vm_flags & VM_EXECUTABLE) |
2424 | added_exe_file_vma(mm); | 2418 | added_exe_file_vma(mm); |
2425 | } | 2419 | } |