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.2.10~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e34e9e8732893488893b9f8b4a449163b7fdfb19;p=pandora-kernel.git regset: Return -EFAULT, not -EIO, on host-side memory fault commit 5189fa19a4b2b4c3bec37c3a019d446148827717 upstream. 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 Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed