correct grant page unmapping in scsiback
[email protected]
maintainerPATCH 1/1 correct grant page unmapping in scsiback
From: Juergen Gross <[email protected]>
In function scsiback_fast_flush_area() the unmap array is set up with sparse entries in case of some grant pages could not be mapped originally. This can lead to never unmapped grant pages.
The unmap array is to be indexed with the so far found number of valid grants, not with the loop variable.
Signed-off-by Juergen Gross <[email protected]>
drivers/xen/scsiback/scsiback.c +1 -1
@@ -92,7 +92,7 @@ void scsiback_fast_flush_area(pending_re handle =pending_handle (req, i);if (handle ==SCSIBACK_INVALID_HANDLE )continue ; -gnttab_set_unmap_op (&unmap[i],vaddr (req, i), +gnttab_set_unmap_op (&unmap[invcount],vaddr (req, i), GNTMAP_host_map, handle);pending_handle (req, i) =SCSIBACK_INVALID_HANDLE ; invcount++;