aboutsummaryrefslogtreecommitdiffstats
path: root/lib/swiotlb.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/swiotlb.c')
-rw-r--r--lib/swiotlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c
index c419ecf334c..752fd95323f 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -696,7 +696,7 @@ swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems,
696 /* Don't panic here, we expect map_sg users 696 /* Don't panic here, we expect map_sg users
697 to do proper error handling. */ 697 to do proper error handling. */
698 swiotlb_full(hwdev, sg->length, dir, 0); 698 swiotlb_full(hwdev, sg->length, dir, 0);
699 swiotlb_unmap_sg(hwdev, sg - i, i, dir); 699 swiotlb_unmap_sg(hwdev, sgl, i, dir);
700 sgl[0].dma_length = 0; 700 sgl[0].dma_length = 0;
701 return 0; 701 return 0;
702 } 702 }