msm: ipa3: Fix to add check for dma_map_single return values

Add a error check for return of dma_map_single
using dma_mapping_error API.Added code
changes to free correct tx_pkt pointer in fail_dma_map condition.

Change-Id: Ib1f9164eef4bfbe4cda26fd1eced1f581fdf1e66
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2 files changed