mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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:
parent
de989ef093
commit
1129585a08
2 changed files with 26 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue