All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] virtio-blk: fix the list operation in virtio_blk_load().
@ 2010-06-21  8:50 Yoshiaki Tamura
  2010-06-21 11:03 ` Kevin Wolf
  0 siblings, 1 reply; 2+ messages in thread
From: Yoshiaki Tamura @ 2010-06-21  8:50 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, Yoshiaki Tamura

Although it is really rare to get in to the while loop, the list
operation in the loop is obviously wrong.

Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
---
 hw/virtio-blk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 75878eb..0bf929a 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -470,7 +470,7 @@ static int virtio_blk_load(QEMUFile *f, void *opaque, int version_id)
         VirtIOBlockReq *req = virtio_blk_alloc_request(s);
         qemu_get_buffer(f, (unsigned char*)&req->elem, sizeof(req->elem));
         req->next = s->rq;
-        s->rq = req->next;
+        s->rq = req;
     }
 
     return 0;
-- 
1.7.0.31.g1df487

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

* Re: [Qemu-devel] [PATCH] virtio-blk: fix the list operation in virtio_blk_load().
  2010-06-21  8:50 [Qemu-devel] [PATCH] virtio-blk: fix the list operation in virtio_blk_load() Yoshiaki Tamura
@ 2010-06-21 11:03 ` Kevin Wolf
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Wolf @ 2010-06-21 11:03 UTC (permalink / raw)
  To: Yoshiaki Tamura; +Cc: aliguori, qemu-devel

Am 21.06.2010 10:50, schrieb Yoshiaki Tamura:
> Although it is really rare to get in to the while loop, the list
> operation in the loop is obviously wrong.
> 
> Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>

Thanks, applied to the block branch.

Kevin

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

end of thread, other threads:[~2010-06-21 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21  8:50 [Qemu-devel] [PATCH] virtio-blk: fix the list operation in virtio_blk_load() Yoshiaki Tamura
2010-06-21 11:03 ` Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.