commit | f495c6e5e8fdc972162241df5bdff5bcebb4dc33 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Thu Jun 10 17:21:29 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Aug 01 10:46:30 2010 +0300 |
tree | b17411bc419947097d92b565daf297250c2c7c40 | |
parent | a24e809902339458416900869abdcc51a44bfd48 [diff] [blame] |
KVM: VMX: Fix incorrect rcu deref in rmode_tss_base() Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 01b054c..26ba61d 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c
@@ -1688,7 +1688,7 @@ 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; }