]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Sat, 6 Mar 2021 13:36:24 +0000 (05:36 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 9 Apr 2021 16:08:42 +0000 (11:08 -0500)
commit6e921680175b53ec8cbf0a158b5fd44456b07042
tree1c216ffa6b39701431e2339715c73b55437c50ff
parentd2f20dc195cabde62c4b3df8b18d14a5839605d2
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.

Fixes: 9e6beafbd87b ("rpmsg: glink: Use the local intents when receiving data")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20210306133624.17237-1-baijiaju1990@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c