msm: smd_pkt: close the smd channel if open process times out

If the smd_pkt open process times out after smd_open returned success,
call smd_close so that the end client can successfully attempt to open
the smd_pkt device at a later time.  If this is not done, smd_open will
return an error code when the end client attempts a retry, causing smd
and smd_pkt to get out of sync with regards to the state of the smd
channel.

Change-Id: I7169fb787f91a4ea7870872f9b1f1faeee2a1336
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
1 file changed