X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fexec.c;h=da27b91ff1e8cbe87d0fe42aa5d39513e6a9deeb;hb=ff826b2b5b269ad440afa686ede879ccabfda387;hp=52c9e2ff6e6bd8b6f763e56ceafda431731cea9b;hpb=2f83766d4b18774c856329a8fca4c9338dfeda39;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/fs/exec.c b/fs/exec.c index 52c9e2f..da27b91 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -280,10 +280,6 @@ static int __bprm_mm_init(struct linux_binprm *bprm) vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); INIT_LIST_HEAD(&vma->anon_vma_chain); - err = security_file_mmap(NULL, 0, 0, 0, vma->vm_start, 1); - if (err) - goto err; - err = insert_vm_struct(mm, vma); if (err) goto err; @@ -823,10 +819,10 @@ static int exec_mmap(struct mm_struct *mm) /* Notify parent that we're no longer interested in the old VM */ tsk = current; old_mm = current->mm; - sync_mm_rss(old_mm); mm_release(tsk, old_mm); if (old_mm) { + sync_mm_rss(old_mm); /* * Make sure that if there is a core dump in progress * for the old mm, we get out and die instead of going