[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] blkback: Fix creation of grant-unmap array in fast_flush_area().



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206640610 0
# Node ID a8f250d8a3e92a387f63b07180b228069446150b
# Parent  a8d039cb11d194f110d5969e4d8e88a35f65a0f8
blkback: Fix creation of grant-unmap array in fast_flush_area().
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/blkback/blkback.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r a8d039cb11d1 -r a8f250d8a3e9 drivers/xen/blkback/blkback.c
--- a/drivers/xen/blkback/blkback.c     Thu Mar 27 17:12:14 2008 +0000
+++ b/drivers/xen/blkback/blkback.c     Thu Mar 27 17:56:50 2008 +0000
@@ -173,8 +173,8 @@ static void fast_flush_area(pending_req_
                handle = pending_handle(req, i);
                if (handle == BLKBACK_INVALID_HANDLE)
                        continue;
-               gnttab_set_unmap_op(&unmap[i], vaddr(req, i), GNTMAP_host_map,
-                                   handle);
+               gnttab_set_unmap_op(&unmap[invcount], vaddr(req, i),
+                                   GNTMAP_host_map, handle);
                pending_handle(req, i) = BLKBACK_INVALID_HANDLE;
                invcount++;
        }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.