Re: "elf core dump: fix get_user use" breaks mips compilation
From: Martin Michlmayr
Date: Tue Feb 17 2009 - 03:15:29 EST
* Roland McGrath <roland@xxxxxxxxxx> [2009-02-16 13:25]:
> I imagine this would work around it:
>
> --- a/fs/binfmt_elf.c
> +++ b/fs/binfmt_elf.c
> @@ -1211,7 +1211,7 @@ static unsigned long vma_dump_size(struc
> if (FILTER(ELF_HEADERS) &&
> vma->vm_pgoff == 0 && (vma->vm_flags & VM_READ)) {
> u32 __user *header = (u32 __user *) vma->vm_start;
> - u32 word;
> + u32 word = 0;
Tested-by: Martin Michlmayr <tbm@xxxxxxxxxx>
--
Martin Michlmayr
http://www.cyrius.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/