From 0e78969e085bd77540c5e55cd2f67ed30d3b2ff9 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Fri, 21 Mar 2008 18:08:58 +0900 Subject: [PATCH] --- yaml --- r: 90924 b: refs/heads/master c: 9460c0ce9b29825d279081d5078815a32c268ada h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-sh/uaccess_32.h | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 094fc939f4aa..1413ac818c86 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5c0cbd74bb56aeb7f3de883ab79c5f501622ccb1 +refs/heads/master: 9460c0ce9b29825d279081d5078815a32c268ada diff --git a/trunk/include/asm-sh/uaccess_32.h b/trunk/include/asm-sh/uaccess_32.h index c0318b608893..1e41fda74bd3 100644 --- a/trunk/include/asm-sh/uaccess_32.h +++ b/trunk/include/asm-sh/uaccess_32.h @@ -55,13 +55,10 @@ static inline void set_fs(mm_segment_t s) * If we don't have an MMU (or if its disabled) the only thing we really have * to look out for is if the address resides somewhere outside of what * available RAM we have. - * - * TODO: This check could probably also stand to be restricted somewhat more.. - * though it still does the Right Thing(tm) for the time being. */ static inline int __access_ok(unsigned long addr, unsigned long size) { - return ((addr >= memory_start) && ((addr + size) < memory_end)); + return 1; } #else /* CONFIG_MMU */ #define __addr_ok(addr) \