msm: ADSPRPC: Free PD memory in case of failures during PD creation
There is possible leak in dma memory allocated for user PD in case of any failures during PD creation. Changes are made to free this dma buffer during error conditions. Also, made changes to ensure that per user PD, fastRPC doesn't allocate PD memory multiple times. In case PD memory is already allocated and we are trying to allocate PD memory for the same process once again, made changes to free the previously allocated dma buffer and use the newly allocated dma buffer instead. Change-Id: Ief703cbbca177f33d2064d89af46e6cf1cc0ed21 Acked-by:Vishnu Karthik D <vikarthi@qti.qualcomm.com> Signed-off-by:
Tharun Kumar Merugu <mtharu@codeaurora.org>
Loading
Please register or sign in to comment