]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc: Fix mremap address range validation.
authorDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 23:33:33 +0000 (16:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 15 May 2008 14:50:05 +0000 (07:50 -0700)
commit385a8d8adfdd806bda12128c3744b564ec112293
tree3d35b5f81b1559e9306b47f93fe4ddcb28d75dc8
parent7b361918258d2477d046af7710a518fda99adffa
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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