projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c31ee
)
swiotlb: fix map_sg failure handling
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Wed, 17 Oct 2007 08:06:18 +0000
(10:06 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 17 Oct 2007 08:06:18 +0000
(10:06 +0200)
sg list elements might not be continuous.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
lib/swiotlb.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/swiotlb.c
b/lib/swiotlb.c
index c419ecf334c30a063374b0cced7cbad8afeed7bc..752fd95323f3d777496f93c2144c7e158d936789 100644
(file)
--- a/
lib/swiotlb.c
+++ b/
lib/swiotlb.c
@@
-696,7
+696,7
@@
swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems,
/* Don't panic here, we expect map_sg users
to do proper error handling. */
swiotlb_full(hwdev, sg->length, dir, 0);
- swiotlb_unmap_sg(hwdev, sg
- i
, i, dir);
+ swiotlb_unmap_sg(hwdev, sg
l
, i, dir);
sgl[0].dma_length = 0;
return 0;
}