mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
KVM: VMX: Fix incorrect rcu deref in rmode_tss_base()
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
a24e809902
commit
f495c6e5e8
@ -1688,7 +1688,7 @@ static gva_t rmode_tss_base(struct kvm *kvm)
|
||||
gfn_t base_gfn;
|
||||
|
||||
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;
|
||||
return base_gfn << PAGE_SHIFT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user