diff options
-rw-r--r-- | arch/x86/kvm/emulate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 749f9fa38254..8aa66068712f 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -711,9 +711,9 @@ static int __linearize(struct x86_emulate_ctxt *ctxt, | |||
711 | return X86EMUL_CONTINUE; | 711 | return X86EMUL_CONTINUE; |
712 | bad: | 712 | bad: |
713 | if (addr.seg == VCPU_SREG_SS) | 713 | if (addr.seg == VCPU_SREG_SS) |
714 | return emulate_ss(ctxt, sel); | 714 | return emulate_ss(ctxt, 0); |
715 | else | 715 | else |
716 | return emulate_gp(ctxt, sel); | 716 | return emulate_gp(ctxt, 0); |
717 | } | 717 | } |
718 | 718 | ||
719 | static int linearize(struct x86_emulate_ctxt *ctxt, | 719 | static int linearize(struct x86_emulate_ctxt *ctxt, |