From: Avi Kivity Date: Thu, 10 Jun 2010 14:21:29 +0000 (+0300) Subject: KVM: VMX: Fix incorrect rcu deref in rmode_tss_base() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f495c6e5e8fdc972162241df5bdff5bcebb4dc33;p=linux-beck.git KVM: VMX: Fix incorrect rcu deref in rmode_tss_base() Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 01b054c98139..26ba61d6af8c 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -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; }