rpmsg: glink: Return -ECONNRESET for non-blcoking tx

For non-blocking Glink tx return -ECONNRESET in case
of connection reset.

CR-Fixed: 2401245
Change-Id: I0773847e8d8cd18664199f13b0830689d741bcf0
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
This commit is contained in:
Deepak Kumar Singh 2019-02-19 18:51:54 +05:30 committed by Chris Lew
parent de35e77307
commit eb06f0b202

View file

@ -1475,6 +1475,9 @@ static int __qcom_glink_send(struct glink_channel *channel,
if (intent)
break;
if (atomic_read(&glink->in_reset))
return -ECONNRESET;
if (!wait)
return -EBUSY;