rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()
Subsystems (2)
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
@@ -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
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 ofqcom_glink_rx_data()is assigned.
To fix this bug, ret is assigned with-ENOENTin this case.Reported-by TOTE Robot <[email protected]>Signed-off-by Jia-Ju Bai <[email protected]>[...]
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
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 ofqcom_glink_rx_data()is assigned.
To fix this bug, ret is assigned with-ENOENTin this case.Reported-by TOTE Robot <[email protected]>Signed-off-by Jia-Ju Bai <[email protected]>[...]
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