提交 49f8a1a5 编写于 作者: A Alex Williamson 提交者: Marcelo Tosatti

kvm: Fix irqfd resampler list walk

Typo for the next pointer means we're walking random data here.
Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
上级 d2ff4fc5
...@@ -333,7 +333,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) ...@@ -333,7 +333,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args)
mutex_lock(&kvm->irqfds.resampler_lock); mutex_lock(&kvm->irqfds.resampler_lock);
list_for_each_entry(resampler, list_for_each_entry(resampler,
&kvm->irqfds.resampler_list, list) { &kvm->irqfds.resampler_list, link) {
if (resampler->notifier.gsi == irqfd->gsi) { if (resampler->notifier.gsi == irqfd->gsi) {
irqfd->resampler = resampler; irqfd->resampler = resampler;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册