qdsp5: mvs: Fix kernel panic due to early closure of endpont

MVS driver closes the RPC endpoint while it sends reply to the
RPC read sometimes. The RPC write for this reply results in
crash as endpoint is already closed.
Wait for RPC read and reply to complete before closing the
endpoint.

CRs-Fixed: 443706
Change-Id: Ia1918082118f23ab9aefec1c3a04908d8d8c1199
Signed-off-by: Sriranjan Srikantam <cssrika@codeaurora.org>
1 file changed