Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d74e7ed authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

rpmsg: qcom_smd: Correct return value for O_NONBLOCK



qcom_smd_send() should return -EAGAIN for non-blocking channels with
insufficient space, so that we can propagate this event to user space.

Fixes: 53e2822e ("rpmsg: Introduce Qualcomm SMD backend")
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 2c8a5708
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -739,7 +739,7 @@ static int __qcom_smd_send(struct qcom_smd_channel *channel, const void *data,

	while (qcom_smd_get_tx_avail(channel) < tlen) {
		if (!wait) {
			ret = -ENOMEM;
			ret = -EAGAIN;
			goto out;
		}