diff options
author | Bjorn Andersson <quic_bjorande@quicinc.com> | 2023-04-18 18:30:17 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-04-19 21:43:19 +0200 |
commit | 7a68f9fa97357a0f2073c9c31ed4101da4fce93e (patch) | |
tree | 5739c2b13b0c7b9b6439531327060f053d96fa70 /crypto/ecrdsa.c | |
parent | rpmsg: glink: Wait for intent, not just request ack (diff) | |
download | linux-7a68f9fa97357a0f2073c9c31ed4101da4fce93e.tar.xz linux-7a68f9fa97357a0f2073c9c31ed4101da4fce93e.zip |
rpmsg: glink: Propagate TX failures in intentless mode as well
As support for splitting transmission over several messages using
TX_DATA_CONT was introduced it does not immediately return the return
value of qcom_glink_tx().
The result is that in the intentless case (i.e. intent == NULL), the
code will continue to send all additional chunks. This is wasteful, and
it's possible that the send operation could incorrectly indicate
success, if the last chunk fits in the TX fifo.
Fix the condition.
Fixes: 8956927faed3 ("rpmsg: glink: Add TX_DATA_CONT command while sending")
Reviewed-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230418163018.785524-2-quic_bjorande@quicinc.com
Diffstat (limited to 'crypto/ecrdsa.c')
0 files changed, 0 insertions, 0 deletions