]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec: copy sequence field for the reply
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 2 Nov 2021 12:24:26 +0000 (12:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 08:04:41 +0000 (09:04 +0100)
commit9637a210fcbc50dfa1fb0e2a414694cecf569465
tree8c9fa8af18f7851e3f0d259e2a5c3b8e26308686
parentef440ac565f53461679c1f925e13948c7f6c0b8d
media: cec: copy sequence field for the reply

commit dbdbd6208c33155de796d3c4a9f7825fc77dbaf8 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: 1ecafcb4b2c2 ([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>
drivers/media/cec/core/cec-adap.c