x86/ldt: Further fix FPU emulation
commit159e99c16e33bf3d01d2d5c1b983443893486d84
authorAndy Lutomirski <luto@kernel.org>
Fri, 14 Aug 2015 22:02:55 +0000 (14 15:02 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Oct 2015 02:46:03 +0000 (13 03:46 +0100)
tree75bc06cfde20202e86cb608de7b0f58f10e7c34f
parenta1c4fb80c5d94ef61a77c1e891cae616a50d8d3c
x86/ldt: Further fix FPU emulation

commit 12e244f4b550498bbaf654a52f93633f7dde2dc7 upstream.

The previous fix confused a selector with a segment prefix.  Fix it.

Compile-tested only.

Cc: Juergen Gross <jgross@suse.com>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Fixes: 4809146b86c3 ("x86/ldt: Correct FPU emulation access to LDT")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/math-emu/get_address.c