public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: Fix irqfd resampler list walk
@ 2012-12-06 21:44 Alex Williamson
  2012-12-10 20:16 ` Marcelo Tosatti
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Williamson @ 2012-12-06 21:44 UTC (permalink / raw)
  To: mtosatti, gleb; +Cc: linux-kernel, kvm

Typo for the next pointer means we're walking random data here.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Cc: stable@vger.kernel.org [3.7]
---

Not sure if this will make 3.7, so preemptively adding the stable flag

 virt/kvm/eventfd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c
index 9718e98..62e7bd6 100644
--- a/virt/kvm/eventfd.c
+++ b/virt/kvm/eventfd.c
@@ -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;


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-28 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06 21:44 [PATCH] kvm: Fix irqfd resampler list walk Alex Williamson
2012-12-10 20:16 ` Marcelo Tosatti
2013-01-28 15:25   ` Alex Williamson
2013-01-28 20:15     ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox