]> err.no Git - linux-2.6/commit
sparc: Fix mremap address range validation.
authorDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 23:33:33 +0000 (16:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 23:33:33 +0000 (16:33 -0700)
commit94d149c34cda933ff5096aca94bb23bf68602f4e
tree2c1a33482cd6961b45296979b898881a7a4d71d3
parentc714a534d85576af21b06be605ca55cb2fb887ee
sparc: Fix mremap address range validation.

Just like mmap, we need to validate address ranges regardless
of MAP_FIXED.

sparc{,64}_mmap_check()'s flag argument is unused, remove.

Based upon a report and preliminary patch by
Jan Lieskovsky <jlieskov@redhat.com>

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys_sparc.c
arch/sparc64/kernel/sys_sparc.c
arch/sparc64/kernel/sys_sparc32.c
include/asm-sparc/mman.h
include/asm-sparc64/mman.h