ia64/linux-2.6.18-xen.hg

changeset 498:a8f250d8a3e9

blkback: Fix creation of grant-unmap array in fast_flush_area().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 27 17:56:50 2008 +0000 (2008-03-27)
parents a8d039cb11d1
children fdb998e79aba
files drivers/xen/blkback/blkback.c
line diff
     1.1 --- a/drivers/xen/blkback/blkback.c	Thu Mar 27 17:12:14 2008 +0000
     1.2 +++ b/drivers/xen/blkback/blkback.c	Thu Mar 27 17:56:50 2008 +0000
     1.3 @@ -173,8 +173,8 @@ static void fast_flush_area(pending_req_
     1.4  		handle = pending_handle(req, i);
     1.5  		if (handle == BLKBACK_INVALID_HANDLE)
     1.6  			continue;
     1.7 -		gnttab_set_unmap_op(&unmap[i], vaddr(req, i), GNTMAP_host_map,
     1.8 -				    handle);
     1.9 +		gnttab_set_unmap_op(&unmap[invcount], vaddr(req, i),
    1.10 +				    GNTMAP_host_map, handle);
    1.11  		pending_handle(req, i) = BLKBACK_INVALID_HANDLE;
    1.12  		invcount++;
    1.13  	}