]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:45 +0000 (09:33 +0100)
commit26e954af2409c1c5580d5584b45b6a26a234cae3
treea10f25ed471824703ea1180cb73abca6e5a588ba
parent0bd4727b5f31a2e3ab6a96e4cc41acaf799a982c
rpmsg: glink: Avoid infinite loop on intent for missing channel

[ Upstream commit eb1ed945bfbc86cd1e4a6327a5aa3e5bc1d2beab ]

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