mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-15 11:44:11 +00:00
rpmsg: glink: Avoid infinite loop on intent for missing channel
[ Upstream commit3e74ec2f39
] In the event that an intent advertisement arrives on an unknown channel the fifo is not advanced, resulting in the same message being handled over and over. Fixes:dacbb35e93
("rpmsg: glink: Receive and store the remote intent buffers") Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Chris Lew <quic_clew@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230214234231.2069751-1-quic_bjorande@quicinc.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
be4c600d06
commit
0d9f8e396d
1 changed files with 1 additions and 0 deletions
|
@ -929,6 +929,7 @@ static void qcom_glink_handle_intent(struct qcom_glink *glink,
|
|||
spin_unlock_irqrestore(&glink->idr_lock, flags);
|
||||
if (!channel) {
|
||||
dev_err(glink->dev, "intents for non-existing channel\n");
|
||||
qcom_glink_rx_advance(glink, ALIGN(msglen, 8));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue