]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
s/EIO/EFAULT/
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 16 Jul 2011 13:30:40 +0000 (23:30 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:04:09 +0000 (15:04 +1000)
Cc: <stable@kernel.org>
Cc: Christian Zankel <chris@zankel.net>
Cc: Dan Rosenberg <drosenberg@vsecurity.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/xtensa/kernel/ptrace.c

index ddce75efd74c665ce23668fece31798cf511716a..a0d042aa296755e441fe4266a7103b315a581a34 100644 (file)
@@ -148,7 +148,7 @@ int ptrace_setxregs(struct task_struct *child, void __user *uregs)
        int ret = 0;
 
        if (!access_ok(VERIFY_READ, uregs, sizeof(elf_xtregs_t)))
-               return -EIO;
+               return -EFAULT;
 
 #if XTENSA_HAVE_COPROCESSORS
        /* Flush all coprocessors before we overwrite them. */