msm: rpc: Reorganize the usage of spinlocks in RPC Router reader thread

A race condition exists between a driver closing an RPC endpoint and
RPC Router routing an incoming RPC message to that endpoint. So hold
the appropriate locks to avoid both the events happening simultaneously.

CRs-Fixed: 301630
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
1 file changed