X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_elf.c;h=c374be51b041a698341ddbda6b9fc5fe1329df46;hb=ad597bd518559f59ede8d01262cdf4467e13282e;hp=ce9423bb2de319d095a3ac5d8e762dcd6d8b3913;hpb=2604f6da1afb56fae5930b58349e43a2b0345933;p=linux-2.6 diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index ce9423bb2d..c374be51b0 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -251,7 +251,7 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr * exec, } /* Populate argv and envp */ - p = current->mm->arg_start; + p = current->mm->arg_end = current->mm->arg_start; while (argc-- > 0) { size_t len; __put_user((elf_addr_t)p, argv++); @@ -1301,7 +1301,7 @@ static void fill_prstatus(struct elf_prstatus *prstatus, static int fill_psinfo(struct elf_prpsinfo *psinfo, struct task_struct *p, struct mm_struct *mm) { - int i, len; + unsigned int i, len; /* first copy the parameters from user space */ memset(psinfo, 0, sizeof(struct elf_prpsinfo));