Skip to content

Commit

Permalink
kvm: Fix irqfd resampler list walk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Williamson authored and Marcelo Tosatti committed Dec 10, 2012
1 parent d2ff4fc commit 49f8a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/eventfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,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;
Expand Down

0 comments on commit 49f8a1a

Please sign in to comment.