Skip to content

Commit

Permalink
KVM: VMX: Fix incorrect rcu deref in rmode_tss_base()
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Avi Kivity committed Aug 1, 2010
1 parent a24e809 commit f495c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f495c6e

Please sign in to comment.