[PATCH] x86-64: Check return value of putreg in PTRACE_SETREGS
commitf49481bc50fce428521497977861b8115666dbe7
authorAndi Kleen <ak@suse.de>
Tue, 13 Feb 2007 12:26:24 +0000 (13 13:26 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 13 Feb 2007 12:26:24 +0000 (13 13:26 +0100)
tree82b104f236cbc9b57d906c79c432fd8bb2d46bd8
parent2f7a2a79c3ebb44f8b1b7d9b4fd3a650eb69e544
[PATCH] x86-64: Check return value of putreg in PTRACE_SETREGS

This means if an illegal value is set for the segment registers there
ptrace will error out now with an errno instead of silently ignoring
it.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/ptrace.c