aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kernel/process.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-11-29 14:07:59 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 08:45:52 -0800
commit40bc15c0f535f4e6b88e8b50cfac2beed67efa55 (patch)
treeda66fff2a929a6d574c74289e4e9a1f8810c09f9 /arch/mips/kernel/process.c
parent1280178d00bf09683fa47a94a98c16437c18edd7 (diff)
KVM: Fix user memslot overlap check
commit 5419369ed6bd4cf711fdda5e52a5999b940413f5 upstream. Prior to memory slot sorting this loop compared all of the user memory slots for overlap with new entries. With memory slot sorting, we're just checking some number of entries in the array that may or may not be user slots. Instead, walk all the slots with kvm_for_each_memslot, which has the added benefit of terminating early when we hit the first empty slot, and skip comparison to private slots. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/kernel/process.c')
0 files changed, 0 insertions, 0 deletions