All of lore.kernel.org
 help / color / mirror / Atom feed
* [git:media_stage/master] media: cec: copy sequence field for the reply
@ 2021-11-10 11:39 Mauro Carvalho Chehab
  0 siblings, 0 replies; only message in thread
From: Mauro Carvalho Chehab @ 2021-11-10 11:39 UTC (permalink / raw)
  To: linuxtv-commits; +Cc: stable, Hans Verkuil

This is an automatic generated email to let you know that the following patch were queued:

Subject: media: cec: copy sequence field for the reply
Author:  Hans Verkuil <hverkuil-cisco@xs4all.nl>
Date:    Tue Nov 2 12:24:26 2021 +0000

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>

 drivers/media/cec/core/cec-adap.c | 1 +
 1 file changed, 1 insertion(+)

---

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);
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-07 10:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 11:39 [git:media_stage/master] media: cec: copy sequence field for the reply Mauro Carvalho Chehab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.