[PATCH 08/16] ata: ahci: properly fill scatter/gather table

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

 



We are supposed to populate a table, but instead we were just
overwriting the same entry over and over in a loop.

Signed-off-by: Denis Orlov <denorl2009@xxxxxxxxx>
---
 drivers/ata/ahci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index f7eb35c09d..2d7b527755 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -139,6 +139,7 @@ static int ahci_fill_sg(struct ahci_port *ahci_port, const void *buf, int buf_le
 
 		buf_len -= now;
 		buf += now;
+		ahci_sg++;
 	}
 
 	return sg_count;
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux