Skip to contentSkip to conversation

rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()

PATCH Applied Jia-Ju Bai 3 participants 3 messages Mar 6, 2021 – May 26, 2021

Subsystems (2)
lore
Share & tools
lore

Jia-Ju Bai

author
#0 lore raw

PATCH 1/1 rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()

When idr_find() returns NULL to intent, no error return code of qcom_glink_rx_data() is assigned.
To fix this bug, ret is assigned with -ENOENT in this case.

---
 drivers/rpmsg/qcom_glink_native.c | 1 +
 1 file changed, 1 insertion(+)
drivers/rpmsg/qcom_glink_native.c +1 -0
index 27a05167c18c..4840886532ff 100644
@@ -857,6 +857,7 @@ static int qcom_glink_rx_data(struct qcom_glink *glink, size_t avail)
 			dev_err(glink->dev,
 				"no intent found for channel %s intent %d",
 				channel->name, liid);
+			ret = -ENOENT;
 			goto advance_rx;
 		}
 	}
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Hello:

This patch was applied to andersson/remoteproc.git (refs/heads/for-next):

Quoted 8 lines · On Sat, 6 Mar 2021 05:36:24 -0800 you wrote:

When idr_find() returns NULL to intent, no error return code of qcom_glink_rx_data() is assigned.
To fix this bug, ret is assigned with -ENOENT in this case.

[...]

Here is the summary with links:
- rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()

    https://git.kernel.org/andersson/remoteproc/c/d9a69846241c

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

#2 lore raw
In reply to Jia-Ju Bai
This patch was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This patch was applied to qcom/linux.git (refs/heads/for-next):

Quoted 8 lines · On Sat, 6 Mar 2021 05:36:24 -0800 you wrote:

When idr_find() returns NULL to intent, no error return code of qcom_glink_rx_data() is assigned.
To fix this bug, ret is assigned with -ENOENT in this case.

[...]

Here is the summary with links:
- rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()

    https://git.kernel.org/qcom/c/26594c6bbb60

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html