diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-07-22 13:05:49 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-08-05 13:59:43 +0300 |
commit | 025dbbf36a7680bffe54d9dcbf0a8bc01a7cbd10 (patch) | |
tree | 17ae3afc86e2cbd71101b136933432928e60b7b7 /arch/x86/kvm/vmx.c | |
parent | 4b656b1202498184a0ecef86b3b89ff613b9c6ab (diff) | |
download | kernel_samsung_crespo-025dbbf36a7680bffe54d9dcbf0a8bc01a7cbd10.zip kernel_samsung_crespo-025dbbf36a7680bffe54d9dcbf0a8bc01a7cbd10.tar.gz kernel_samsung_crespo-025dbbf36a7680bffe54d9dcbf0a8bc01a7cbd10.tar.bz2 |
KVM: MMU: handle n_free_mmu_pages > n_alloc_mmu_pages in kvm_mmu_change_mmu_pages
kvm_mmu_change_mmu_pages mishandles the case where n_alloc_mmu_pages is
smaller then n_free_mmu_pages, by not checking if the result of
the subtraction is negative.
Its a valid condition which can happen if a large number of pages has
been recently freed.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
0 files changed, 0 insertions, 0 deletions