usb: u_qdss: Add proper error handling for map failure of iova
dma_map_resource() API returns DMA_MAPPING_ERROR i.e -1 upon error.
The current code checks against NULL which makes it think that the
API returned successfully. The incorrect IOVA further results into
SMMU fault. To fix this, add proper error handling for mapping
failure of iova.
Change-Id: I080049029ce01be13c603a1d709e37189a09484e
Signed-off-by:
Rohith Kollalsi <quic_rkollals@quicinc.com>
Loading
Please register or sign in to comment