diff options
Diffstat (limited to 'lib/usercopy.c')
-rw-r--r-- | lib/usercopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/usercopy.c b/lib/usercopy.c index 15e2e6fb060e..3744b2a8e591 100644 --- a/lib/usercopy.c +++ b/lib/usercopy.c | |||
@@ -20,7 +20,7 @@ EXPORT_SYMBOL(_copy_from_user); | |||
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #ifndef INLINE_COPY_TO_USER | 22 | #ifndef INLINE_COPY_TO_USER |
23 | unsigned long _copy_to_user(void *to, const void __user *from, unsigned long n) | 23 | unsigned long _copy_to_user(void __user *to, const void *from, unsigned long n) |
24 | { | 24 | { |
25 | might_fault(); | 25 | might_fault(); |
26 | if (likely(access_ok(VERIFY_WRITE, to, n))) { | 26 | if (likely(access_ok(VERIFY_WRITE, to, n))) { |