linux-brain/drivers/rpmsg
Jia-Ju Bai 20f9516b83 rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()
[ Upstream commit 26594c6bbb60c6bc87e3762a86ceece57d164c66 ]

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: 64f95f8792 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:08:25 +02:00
..
Kconfig rpmsg: Switch to SPDX license identifier 2018-06-03 17:37:11 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qcom_glink_native.c rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data() 2021-05-19 10:08:25 +02:00
qcom_glink_native.h rpmsg: glink: Switch to SPDX license identifier 2018-06-03 17:37:15 -07:00
qcom_glink_rpm.c rpmsg: glink: Switch to SPDX license identifier 2018-06-03 17:37:15 -07:00
qcom_glink_smem.c rpmsg: glink: Set tail pointer to 0 at end of FIFO 2019-12-21 11:04:36 +01:00
qcom_smd.c rpmsg: smd: Fix a kobj leak in in qcom_smd_parse_edge() 2020-10-29 09:57:54 +01:00
rpmsg_char.c rpmsg: char: release allocated memory 2020-01-14 20:08:37 +01:00
rpmsg_core.c rpmsg: core: fix comments 2019-08-26 23:08:25 -07:00
rpmsg_internal.h rpmsg: core: fix comments 2019-08-26 23:08:25 -07:00
virtio_rpmsg_bus.c rpmsg: virtio_rpmsg_bus: replace "%p" with "%pK" 2019-08-27 15:21:05 -07:00