mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
android: ion: set sg address by sg_dma_address
Change-Id: I20b6d34a93aa3bc2b0044cfbc004e13ca60d2b2f Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
@@ -202,7 +202,8 @@ static struct sg_table *dup_sg_table(struct sg_table *table)
|
||||
new_sg = new_table->sgl;
|
||||
for_each_sg(table->sgl, sg, table->nents, i) {
|
||||
memcpy(new_sg, sg, sizeof(*sg));
|
||||
new_sg->dma_address = 0;
|
||||
sg_dma_address(new_sg) = 0;
|
||||
sg_dma_len(new_sg) = 0;
|
||||
new_sg = sg_next(new_sg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user