bus/fslmc: add check for memseg availability
authorShreyansh Jain <shreyansh.jain@nxp.com>
Thu, 22 Jun 2017 13:57:15 +0000 (19:27 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
commit24a170cd3061d5d85f6ab7cdceb0ac55458e0e02
tree73390ddd07ced3624817cb35336a833bf8d3c989
parente401e2c95a35d1ed6dc8549c961388cd9dcf2c16
bus/fslmc: add check for memseg availability

Cleanup the DMA map logic for memsegs. Earlier, in case
DMA mapping reaching end of segment, it reports a spurious error.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/fslmc/fslmc_vfio.c