mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 15:42:46 +00:00
rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data()
[ Upstream commit26594c6bbb
] 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>
This commit is contained in:
parent
b59194c7ca
commit
0627cbc9b8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue