diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/include/asm/uaccess.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/include/asm/uaccess.h b/arch/blackfin/include/asm/uaccess.h index 90f32c2a65bb..ded2d05847fa 100644 --- a/arch/blackfin/include/asm/uaccess.h +++ b/arch/blackfin/include/asm/uaccess.h | |||
@@ -256,11 +256,11 @@ static inline long __must_check strlen_user(const char *src) | |||
256 | */ | 256 | */ |
257 | 257 | ||
258 | static inline unsigned long __must_check | 258 | static inline unsigned long __must_check |
259 | __clear_user(void *to, unsigned long n) | 259 | __clear_user(void __user *to, unsigned long n) |
260 | { | 260 | { |
261 | if (!access_ok(VERIFY_WRITE, to, n)) | 261 | if (!access_ok(VERIFY_WRITE, to, n)) |
262 | return n; | 262 | return n; |
263 | memset(to, 0, n); | 263 | memset((void __force *)to, 0, n); |
264 | return 0; | 264 | return 0; |
265 | } | 265 | } |
266 | 266 | ||