Skip to content

Commit 824b167

Browse files
quic-bjorandegregkh
authored andcommitted
rpmsg: glink: Avoid infinite loop on intent for missing channel
[ Upstream commit 3e74ec2 ] 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: dacbb35 ("rpmsg: glink: Receive and store the remote intent buffers") Signed-off-by: Bjorn Andersson <[email protected]> Reviewed-by: Chris Lew <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sasha Levin <[email protected]>
1 parent a41bb59 commit 824b167

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/rpmsg/qcom_glink_native.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ static void qcom_glink_handle_intent(struct qcom_glink *glink,
929929
spin_unlock_irqrestore(&glink->idr_lock, flags);
930930
if (!channel) {
931931
dev_err(glink->dev, "intents for non-existing channel\n");
932+
qcom_glink_rx_advance(glink, ALIGN(msglen, 8));
932933
return;
933934
}
934935

0 commit comments

Comments
 (0)