projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4809146
)
x86/ldt: Further fix FPU emulation
author
Andy Lutomirski
<
[email protected]
>
Fri, 14 Aug 2015 22:02:55 +0000
(15:02 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sun, 16 Aug 2015 22:11:05 +0000
(15:11 -0700)
The previous fix confused a selector with a segment prefix. Fix it.
Compile-tested only.
Cc:
[email protected]
Cc: Juergen Gross <
[email protected]
>
Reported-by: Linus Torvalds <
[email protected]
>
Fixes: 4809146b86c3 ("x86/ldt: Correct FPU emulation access to LDT")
Signed-off-by: Andy Lutomirski <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86/math-emu/get_address.c
patch
|
blob
|
history
diff --git
a/arch/x86/math-emu/get_address.c
b/arch/x86/math-emu/get_address.c
index d13cab2aec454ecfecda32599f9939e5891cf126..8300db71c2a62681006e137350961742190ec9dc 100644
(file)
--- a/
arch/x86/math-emu/get_address.c
+++ b/
arch/x86/math-emu/get_address.c
@@
-157,7
+157,7
@@
static long pm_address(u_char FPU_modrm, u_char segment,
addr->selector = PM_REG_(segment);
}
- descriptor = FPU_get_ldt_descriptor(
segment
);
+ descriptor = FPU_get_ldt_descriptor(
addr->selector
);
base_address = SEG_BASE_ADDR(descriptor);
address = base_address + offset;
limit = base_address