Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c73d8b84 authored by Steve Cohen's avatar Steve Cohen
Browse files

msm: sde: change error checking of return value on dma map ops



Changes the error checking when calling dma mapping operations.
The number of address segments mapped by dma_map_sg may be shorter
than the requested number of entries if the iova in the lists are
adjacent.  Therefore it is possible for mismatches between the
return value and the expected number of entries.  To test for
successful mapping, all that is required is to check that a
non-zero value was returned.

Change-Id: I4d5e2e4eecc64f314515247b49939402ee3d924c
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent 66f22056
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