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:
parent
de35e77307
commit
eb06f0b202
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue