diff options
| -rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 519f3572e48e..02363e37d4a6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
| @@ -5067,6 +5067,8 @@ static bool emulator_get_segment(struct x86_emulate_ctxt *ctxt, u16 *selector, | |||
| 5067 | 5067 | ||
| 5068 | if (var.unusable) { | 5068 | if (var.unusable) { |
| 5069 | memset(desc, 0, sizeof(*desc)); | 5069 | memset(desc, 0, sizeof(*desc)); |
| 5070 | if (base3) | ||
| 5071 | *base3 = 0; | ||
| 5070 | return false; | 5072 | return false; |
| 5071 | } | 5073 | } |
| 5072 | 5074 | ||
