From: Al Viro Date: Tue, 28 Sep 2010 17:50:37 +0000 (+0100) Subject: MIPS: Sanitize restart logics X-Git-Tag: v2.6.36~6^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f5a00eb422ed86e77bb8f67e08b9fe6d30f679a;p=pandora-kernel.git MIPS: Sanitize restart logics Put the original syscall number into ->regs[0] when we leave syscall with error. Use it in restart logics. Everything else will have it 0 since we pass through SAVE_SOME on all the ways in. Note that in places like bad_stack and inllegal_syscall we leave it 0 - it's not restartable. Signed-off-by: Al Viro Cc: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1698/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed