x86: introduce copy_user_handle_tail() routine

Introduce generic C routine for handling necessary tail operations after
protection fault in copy_*_user on x86.

Signed-off-by: Vitaly Mayatskikh <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
Vitaly Mayatskikh 2008-07-02 15:48:21 +02:00 • committed by Ingo Molnar
commit 1129585a08
2 changed files with 26 additions and 0 deletions

View file

@ -195,4 +195,7 @@ static inline int __copy_from_user_inatomic_nocache(void *dst,
return __copy_user_nocache(dst, src, size, 0);
}
unsigned long
copy_user_handle_tail(char *to, char *from, unsigned len, unsigned zerorest);
#endif /* __X86_64_UACCESS_H */