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:19:00 +0000 (09:19 +0100)
commit3a4aeb37a7a61740aa50d763697ebb88280cc37b
tree1a0b197ca8aad155e81853cf4ab1ab8d81e04c29
parent3798218a1af4ffb9ff10a3d86fa307dcf9dfb309
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>
drivers/media/cec/core/cec-adap.c