mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
new helper: uaccess_kernel()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
aaa2e7ac80
commit
db68ce10c4
32 changed files with 44 additions and 42 deletions
|
|
@ -23,7 +23,7 @@ int _access_ok(unsigned long addr, unsigned long size)
|
|||
if (!addr || addr > (0xffffffffUL - (size - 1)))
|
||||
goto _bad_access;
|
||||
|
||||
if (segment_eq(get_fs(), KERNEL_DS))
|
||||
if (uaccess_kernel())
|
||||
return 1;
|
||||
|
||||
if (memory_start <= addr && (addr + size - 1) < memory_end)
|
||||
|
|
|
|||
Loading…
Reference in a new issue