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

Commit 0f71043c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "rpmsg: glink: Return error if receive callback is not present"

parents 8fa7d33a ca6dac1f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -974,6 +974,14 @@ static int qcom_glink_rx_data(struct qcom_glink *glink, size_t avail)
		/* Drop the message */
		goto advance_rx;
	}

	if (!channel->ept.cb) {
		dev_err(glink->dev,
			"Callback not available on channel %s\n",
			channel->name);
		return -EAGAIN;
	}

	CH_INFO(channel, "chunk_size:%d left_size:%d\n", chunk_size, left_size);

	if (glink->intentless) {