From: Andy Whitcroft Seems that a trailing ';' has slipped onto the end of the access_ok check here, such that we will always return -EFAULT. Signed-off-by: Andy Whitcroft Cc: Ralf Baechle Signed-off-by: Andrew Morton --- arch/mips/kernel/irixsig.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/mips/kernel/irixsig.c~mips-irix_getcontext-will-always-fail-efault arch/mips/kernel/irixsig.c --- a/arch/mips/kernel/irixsig.c~mips-irix_getcontext-will-always-fail-efault +++ a/arch/mips/kernel/irixsig.c @@ -725,7 +725,7 @@ asmlinkage int irix_getcontext(struct pt current->comm, current->pid, ctx); #endif - if (!access_ok(VERIFY_WRITE, ctx, sizeof(*ctx))); + if (!access_ok(VERIFY_WRITE, ctx, sizeof(*ctx))) return -EFAULT; error = __put_user(current->thread.irix_oldctx, &ctx->link); _