x86: uaccess_64: fix return value in __copy_from_user()

__copy_from_user() will return invalid value 16 when it fails to
access user space and the size is 10.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Hiroshi Shimamoto and committed by Ingo Molnar 20a4a236 093bac15

+1 -1
+1 -1
arch/x86/include/asm/uaccess_64.h
··· 46 46 return ret; 47 47 case 10: 48 48 __get_user_asm(*(u64 *)dst, (u64 __user *)src, 49 - ret, "q", "", "=r", 16); 49 + ret, "q", "", "=r", 10); 50 50 if (unlikely(ret)) 51 51 return ret; 52 52 __get_user_asm(*(u16 *)(8 + (char *)dst),