X-Git-Url: http://git.agner.ch/gitweb/?p=linux-drm-fsl-dcu.git;a=blobdiff_plain;f=fs%2Fexec.c;h=7e36c6f6f538adaf0bf4559e6de3b49579141c8e;hp=11fe93f7363c9dfb0cd05f52992ac0e6dd6bba9c;hb=93bbad8fe13a25dcf7f3bc628a71d1a7642ae61b;hpb=7e23772f414cdbfb2a08aed237d6e926bb1cb728 diff --git a/fs/exec.c b/fs/exec.c index 11fe93f7363c..7e36c6f6f538 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -405,12 +405,10 @@ int setup_arg_pages(struct linux_binprm *bprm, bprm->loader += stack_base; bprm->exec += stack_base; - mpnt = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); + mpnt = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); if (!mpnt) return -ENOMEM; - memset(mpnt, 0, sizeof(*mpnt)); - down_write(&mm->mmap_sem); { mpnt->vm_mm = mm;