Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90924
b: refs/heads/master
c: 9460c0c
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Apr 18, 2008
1 parent 567fc70 commit 0e78969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c0cbd74bb56aeb7f3de883ab79c5f501622ccb1
refs/heads/master: 9460c0ce9b29825d279081d5078815a32c268ada
5 changes: 1 addition & 4 deletions trunk/include/asm-sh/uaccess_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 0e78969

Please sign in to comment.