[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-unstable] virtio-blk: correctly link new request in virtio_blk_load()
commit 4fd8feea11eca12e370d9ada03c8d1bf81541a9a Author: Yunlei Ding <yunlei.ding@xxxxxxxxxx> AuthorDate: Tue Mar 11 09:49:59 2014 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Oct 16 16:52:07 2015 +0100 virtio-blk: correctly link new request in virtio_blk_load() s->rq should be set with req instead of req-next. Signed-off-by: Yunlei Ding <yunlei.ding@xxxxxxxxxx> Coverity-ID: 1055910 Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- 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 fcf893a..f3a81e3 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -288,7 +288,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; -- generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |