aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-11-02 13:24:26 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-11-10 09:42:41 +0100
commitdc99c6733ae8e3caa91e09fcc9e2431451afbf2d (patch)
treeaa20cba73404b49f001d69c73b8d85068f2b19f2
parenta35efc0e9b2d54d49506632f9a35a67fc3ef75dc (diff)
cec: copy sequence field for the replybr-v5.16a
When the reply for a non-blocking transmit arrives, the sequence field for that reply was never filled in, so userspace would have no way of associating the reply to the original transmit. Copy the sequence field to ensure that this is now possible. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes: 0dbacebede1e ([media] cec: move the CEC framework out of staging and to media) Cc: <stable@vger.kernel.org>
-rw-r--r--drivers/media/cec/core/cec-adap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/cec/core/cec-adap.c b/drivers/media/cec/core/cec-adap.c
index 79fa36de8a04..cd9cb354dc2c 100644
--- a/drivers/media/cec/core/cec-adap.c
+++ b/drivers/media/cec/core/cec-adap.c
@@ -1199,6 +1199,7 @@ void cec_received_msg_ts(struct cec_adapter *adap,
if (abort)
dst->rx_status |= CEC_RX_STATUS_FEATURE_ABORT;
msg->flags = dst->flags;
+ msg->sequence = dst->sequence;
/* Remove it from the wait_queue */
list_del_init(&data->list);