[PATCH] MIPS: fix access_ok()

2013-02-19 Thread Yong Zhang
From: Yong Zhang Current access_ok() will fail even if the address range is valid when it reaches to the end of TASK_SIZE. For exampe: addr = 0xf0; size = 16; the real address range it want to access is 0xf0~0xf; but addr + size = 0x100 which we will not and can't

[PATCH] MIPS: fix access_ok()

2013-02-19 Thread Yong Zhang
From: Yong Zhang yong.zh...@windriver.com Current access_ok() will fail even if the address range is valid when it reaches to the end of TASK_SIZE. For exampe: addr = 0xf0; size = 16; the real address range it want to access is 0xf0~0xf; but addr + size = 0x100