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

Skip to content
Commit d9f51072 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVishnu Karthik D <vikarthi@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent a9c50a83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment