summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-11-02 12:24:26 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-01 09:23:28 +0100
commit4a6f918a92b06e9969132175d8925442f0a6de34 (patch)
tree08ecd583b19916d56cb065454308b10c2bfd7ff4 /drivers/media
parent8d0b9ea1917491bf71720b516d97e3afb336952f (diff)
downloadlinux-4a6f918a92b06e9969132175d8925442f0a6de34.tar.gz
linux-4a6f918a92b06e9969132175d8925442f0a6de34.tar.bz2
linux-4a6f918a92b06e9969132175d8925442f0a6de34.zip
media: cec: copy sequence field for the reply
commit 13cbaa4c2b7bf9f8285e1164d005dbf08244ecd5 upstream. 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> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/cec/cec-adap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c
index 06383b26712b..56857ac0a0be 100644
--- a/drivers/media/cec/cec-adap.c
+++ b/drivers/media/cec/cec-adap.c
@@ -1191,6 +1191,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);