diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-07 02:24:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-07 02:24:28 -0700 |
commit | 5816339310b2d9623cf413d33e538b45e815da5d (patch) | |
tree | 268187469afc7e9eae439ef613f0c9f86f5e91ba /arch/sparc | |
parent | d45100f7b69e3d9cd0cd5e956b6ac2c78d460d07 (diff) | |
download | linux-5816339310b2d9623cf413d33e538b45e815da5d.tar.gz linux-5816339310b2d9623cf413d33e538b45e815da5d.tar.bz2 linux-5816339310b2d9623cf413d33e538b45e815da5d.zip |
sparc: Fix mmap VA span checking.
We should not conditionalize VA range checks on MAP_FIXED.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/sys_sparc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sys_sparc.c b/arch/sparc/kernel/sys_sparc.c index f188b5dc9fd0..e995491c4436 100644 --- a/arch/sparc/kernel/sys_sparc.c +++ b/arch/sparc/kernel/sys_sparc.c @@ -223,8 +223,7 @@ int sparc_mmap_check(unsigned long addr, unsigned long len, unsigned long flags) { if (ARCH_SUN4C_SUN4 && (len > 0x20000000 || - ((flags & MAP_FIXED) && - addr < 0xe0000000 && addr + len > 0x20000000))) + (addr < 0xe0000000 && addr + len > 0x20000000))) return -EINVAL; /* See asm-sparc/uaccess.h */ |