aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/eventfd.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-12-06 16:44:59 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2012-12-10 15:16:36 -0500
commit49f8a1a5394d8baee5e56fb71e5cf993c228689a (patch)
tree6fed581f19ce97283e73a970466d653b60bbe9f1 /virt/kvm/eventfd.c
parentd2ff4fc557a4c5248b2d99b0d48e47a246d994b2 (diff)
kvm: Fix irqfd resampler list walk
Typo for the next pointer means we're walking random data here. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm/eventfd.c')
-rw-r--r--virt/kvm/eventfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c
index d7424c8c138a..b6eea5cc7b34 100644
--- a/virt/kvm/eventfd.c
+++ b/virt/kvm/eventfd.c
@@ -333,7 +333,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args)
333 mutex_lock(&kvm->irqfds.resampler_lock); 333 mutex_lock(&kvm->irqfds.resampler_lock);
334 334
335 list_for_each_entry(resampler, 335 list_for_each_entry(resampler,
336 &kvm->irqfds.resampler_list, list) { 336 &kvm->irqfds.resampler_list, link) {
337 if (resampler->notifier.gsi == irqfd->gsi) { 337 if (resampler->notifier.gsi == irqfd->gsi) {
338 irqfd->resampler = resampler; 338 irqfd->resampler = resampler;
339 break; 339 break;