rpmsg: glink: Avoid infinite loop on intent for missing channel
authorBjorn Andersson <quic_bjorande@quicinc.com>
Tue, 14 Feb 2023 23:42:31 +0000 (15:42 -0800)
committerBjorn Andersson <andersson@kernel.org>
Wed, 15 Feb 2023 04:28:55 +0000 (20:28 -0800)
commit3e74ec2f39362bffbd42854acbb67c7f4cb808f9
treede06a3265de276eafd8505c2f94da133bb75e19d
parent4e816d0318fdfe8932da80dbf04ba318b13e4b3a
rpmsg: glink: Avoid infinite loop on intent for missing channel

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: dacbb35e930f ("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
drivers/rpmsg/qcom_glink_native.c