commit | 9a67bc4aac82d18132e8a5677926f05d43e44e77 | [log] [tgz] |
---|---|---|
author | Anand K Mistry <amistry@chromium.org> | Mon Apr 20 16:08:34 2020 +1000 |
committer | Chun-Kuang Hu <chunkuang.hu@kernel.org> | Thu May 21 00:10:08 2020 +0800 |
tree | edd0bd1b54812bee275e4be3582b2cc9fac066e8 | |
parent | 424a3a706aac4ec70de4414f5bce62c09a3d76e1 [diff] |
drm/mediatek: Stop iterating dma addresses when sg_dma_len() == 0 If dma_map_sg() merges pages when creating the mapping, only the first entries will have a valid sg_dma_address() and sg_dma_len(), followed by entries with sg_dma_len() == 0. Signed-off-by: Anand K Mistry <amistry@google.com> Signed-off-by: Anand K Mistry <amistry@chromium.org> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>