diff options
author | Denis Orlov <denorl2009@gmail.com> | 2022-05-04 12:25:45 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-05-05 09:47:04 +0200 |
commit | 5740f79edebbe6d29189b9aba9ce8cfa2e374532 (patch) | |
tree | 5305d7e0d3e9fd8b9e6ded0efb674f4198ca992a /drivers/ata | |
parent | 81f4812dd1fd696418d03207dcf9d9ded88a142c (diff) | |
download | barebox-5740f79edebbe6d29189b9aba9ce8cfa2e374532.tar.gz barebox-5740f79edebbe6d29189b9aba9ce8cfa2e374532.tar.xz |
ata: ahci: properly fill scatter/gather table
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@gmail.com>
Link: https://lore.barebox.org/20220504092553.27961-8-denorl2009@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |