Commit f495c6e5 authored by Avi Kivity's avatar Avi Kivity

KVM: VMX: Fix incorrect rcu deref in rmode_tss_base()

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent a24e8099
...@@ -1688,7 +1688,7 @@ static gva_t rmode_tss_base(struct kvm *kvm) ...@@ -1688,7 +1688,7 @@ static gva_t rmode_tss_base(struct kvm *kvm)
gfn_t base_gfn; gfn_t base_gfn;
slots = kvm_memslots(kvm); slots = kvm_memslots(kvm);
base_gfn = kvm->memslots->memslots[0].base_gfn + base_gfn = slots->memslots[0].base_gfn +
kvm->memslots->memslots[0].npages - 3; kvm->memslots->memslots[0].npages - 3;
return base_gfn << PAGE_SHIFT; return base_gfn << PAGE_SHIFT;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment