]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kvm: Fix irqfd resampler list walk
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 6 Dec 2012 21:44:59 +0000 (14:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:06 +0000 (18:27 -0600)
commit 49f8a1a5394d8baee5e56fb71e5cf993c228689a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/eventfd.c

index 9718e98d6d2a84956d113bd43f55d804bd30d049..62e7bd63ca3a3cba9eb749fd270cb84c5f6781c1 100644 (file)
@@ -332,7 +332,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args)
                mutex_lock(&kvm->irqfds.resampler_lock);
 
                list_for_each_entry(resampler,
-                                   &kvm->irqfds.resampler_list, list) {
+                                   &kvm->irqfds.resampler_list, link) {
                        if (resampler->notifier.gsi == irqfd->gsi) {
                                irqfd->resampler = resampler;
                                break;