aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-06-10 10:21:29 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:46:30 -0400
commitf495c6e5e8fdc972162241df5bdff5bcebb4dc33 (patch)
treeb17411bc419947097d92b565daf297250c2c7c40 /arch
parenta24e809902339458416900869abdcc51a44bfd48 (diff)
KVM: VMX: Fix incorrect rcu deref in rmode_tss_base()
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
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)
1688 gfn_t base_gfn; 1688 gfn_t base_gfn;
1689 1689
1690 slots = kvm_memslots(kvm); 1690 slots = kvm_memslots(kvm);
1691 base_gfn = kvm->memslots->memslots[0].base_gfn + 1691 base_gfn = slots->memslots[0].base_gfn +
1692 kvm->memslots->memslots[0].npages - 3; 1692 kvm->memslots->memslots[0].npages - 3;
1693 return base_gfn << PAGE_SHIFT; 1693 return base_gfn << PAGE_SHIFT;
1694 } 1694 }