From: H. Peter Anvin Date: Fri, 2 Mar 2012 18:43:49 +0000 (-0800) Subject: regset: Return -EFAULT, not -EIO, on host-side memory fault X-Git-Tag: v3.3-rc6~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5189fa19a4b2b4c3bec37c3a019d446148827717;p=pandora-kernel.git regset: Return -EFAULT, not -EIO, on host-side memory fault There is only one error code to return for a bad user-space buffer pointer passed to a system call in the same address space as the system call is executed, and that is EFAULT. Furthermore, the low-level access routines, which catch most of the faults, return EFAULT already. Signed-off-by: H. Peter Anvin Reviewed-by: Oleg Nesterov Acked-by: Roland McGrath Cc: Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed