KVM: MMU: make __kvm_mmu_free_some_pages handle empty list
authorIzik Eidus <ieidus@redhat.com>
Tue, 28 Jul 2009 18:26:58 +0000 (15:26 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:20 +0000 (08:33 +0300)
commit3b80fffe2b31fb716d3ebe729c54464ee7856723
tree9607efd950f70c279dba1e78506bbe9e5bb369bc
parent95fb4eb6981216c07ac01f598e61b273b6eff58c
KVM: MMU: make __kvm_mmu_free_some_pages handle empty list

First check if the list is empty before attempting to look at list
entries.

Cc: stable@kernel.org
Signed-off-by: Izik Eidus <ieidus@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c