aboutsummaryrefslogtreecommitdiff
path: root/lib/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dma.c')
-rw-r--r--lib/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dma.c b/lib/dma.c
index 9270114..ffc0b6b 100644
--- a/lib/dma.c
+++ b/lib/dma.c
@@ -442,7 +442,7 @@ _dma_addr_sg_split(const dma_controller_t *dma,
size_t region_len = MIN((uint64_t)(region_end - dma_addr), len);
if (cnt < max_sg) {
- ret = dma_init_sg(dma, sg, dma_addr, region_len, prot, idx);
+ ret = dma_init_sg(dma, &sg[cnt], dma_addr, region_len, prot, idx);
if (ret < 0) {
return ret;
}