[PATCH 08/16] ata: ahci: properly fill scatter/gather table
Denis Orlov
denorl2009 at gmail.com
Wed May 4 02:25:45 PDT 2022
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 at gmail.com>
---
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
More information about the barebox
mailing list