qdsp5: mvs: Allow only single instance of mvs session

During MVS open, mvs driver calls msm_rpc_connect to establish
rpc connection with modem mvs server without checking for
current state of mvs driver. This causes modem oncrpc memory
pool to exhaust if back to back open is called without closing
the mvs driver.

Added check to call rpc connect only if mvs driver is in
closed state.

CRs-Fixed: 433208
Change-Id: Id8274318096ba3e774925451999670eebe0a66c1
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
1 file changed