diff options
Diffstat (limited to 'arch/hexagon/mm/uaccess.c')
| -rw-r--r-- | arch/hexagon/mm/uaccess.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/hexagon/mm/uaccess.c b/arch/hexagon/mm/uaccess.c index ec90afdb3ad0..c599eb126c9e 100644 --- a/arch/hexagon/mm/uaccess.c +++ b/arch/hexagon/mm/uaccess.c | |||
| @@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) | |||
| 37 | long uncleared; | 37 | long uncleared; |
| 38 | 38 | ||
| 39 | while (count > PAGE_SIZE) { | 39 | while (count > PAGE_SIZE) { |
| 40 | uncleared = __copy_to_user_hexagon(dest, &empty_zero_page, | 40 | uncleared = raw_copy_to_user(dest, &empty_zero_page, PAGE_SIZE); |
| 41 | PAGE_SIZE); | ||
| 42 | if (uncleared) | 41 | if (uncleared) |
| 43 | return count - (PAGE_SIZE - uncleared); | 42 | return count - (PAGE_SIZE - uncleared); |
| 44 | count -= PAGE_SIZE; | 43 | count -= PAGE_SIZE; |
| 45 | dest += PAGE_SIZE; | 44 | dest += PAGE_SIZE; |
| 46 | } | 45 | } |
| 47 | if (count) | 46 | if (count) |
| 48 | count = __copy_to_user_hexagon(dest, &empty_zero_page, count); | 47 | count = raw_copy_to_user(dest, &empty_zero_page, count); |
| 49 | 48 | ||
| 50 | return count; | 49 | return count; |
| 51 | } | 50 | } |
