aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/math-emu/load_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/math-emu/load_store.c')
-rw-r--r--arch/i386/math-emu/load_store.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/math-emu/load_store.c b/arch/i386/math-emu/load_store.c
index 85314be2fef..eebd6fb1c8a 100644
--- a/arch/i386/math-emu/load_store.c
+++ b/arch/i386/math-emu/load_store.c
@@ -227,6 +227,8 @@ int FPU_load_store(u_char type, fpu_addr_modes addr_modes,
case 027: /* fild m64int */
clear_C1();
loaded_tag = FPU_load_int64((long long __user *)data_address);
+ if (loaded_tag == TAG_Error)
+ return 0;
FPU_settag0(loaded_tag);
break;
case 030: /* fstenv m14/28byte */