Commit b41d5c8d authored by Rob Radez's avatar Rob Radez Committed by David S. Miller

[SPARC]: Fix iommu_get_scsi_sgl_pflush.

parent f7a4f91e
No related merge requests found
...@@ -194,7 +194,7 @@ static void iommu_get_scsi_sgl_pflush(struct scatterlist *sg, int sz, struct sbu ...@@ -194,7 +194,7 @@ static void iommu_get_scsi_sgl_pflush(struct scatterlist *sg, int sz, struct sbu
while(sz >= 0) { while(sz >= 0) {
--sz; --sz;
page = ((unsigned long) sg[sz].offset) & PAGE_MASK; page = (unsigned long) page_address(sg[sz].page);
if (oldpage == page) if (oldpage == page)
page += PAGE_SIZE; /* We flushed that page already */ page += PAGE_SIZE; /* We flushed that page already */
while(page < (unsigned long)(page_address(sg[sz].page) + sg[sz].offset + sg[sz].length)) { while(page < (unsigned long)(page_address(sg[sz].page) + sg[sz].offset + sg[sz].length)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment