Skip to content
Commit 9a67bc4a authored by Anand K Mistry's avatar Anand K Mistry Committed by Chun-Kuang Hu
Browse files

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: default avatarAnand K Mistry <amistry@google.com>
Signed-off-by: default avatarAnand K Mistry <amistry@chromium.org>
Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent 424a3a70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment