git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new helper: uaccess_kernel()
[sfrench/cifs-2.6.git]
/
arch
/
blackfin
/
kernel
/
process.c
diff --git
a/arch/blackfin/kernel/process.c
b/arch/blackfin/kernel/process.c
index 89d5162d4ca67594395d5e787392c39883ec79f8..89814850b08bf0cded0c796c3cb43c0b4580f32b 100644
(file)
--- a/
arch/blackfin/kernel/process.c
+++ b/
arch/blackfin/kernel/process.c
@@
-370,7
+370,7
@@
int _access_ok(unsigned long addr, unsigned long size)
/* Check that things do not wrap around */
if (addr > ULONG_MAX - size)
return 0;
- if (
segment_eq(get_fs(), KERNEL_DS
))
+ if (
uaccess_kernel(
))
return 1;
#ifdef CONFIG_MTD_UCLINUX
if (1)