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

[SPARC]: Fix loop terminator in iommu_get_scsi_sgl_pflush.

parent ad5a64b3
......@@ -192,7 +192,7 @@ static void iommu_get_scsi_sgl_pflush(struct scatterlist *sg, int sz, struct sbu
{
unsigned long page, oldpage = 0;
while(sz >= 0) {
while(sz != 0) {
--sz;
page = (unsigned long) page_address(sg[sz].page);
if (oldpage == page)
......
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