]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: uapi/linux/cec.h: cec_msg_set_reply_to: zero flags
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 7 Aug 2024 07:22:10 +0000 (09:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:40 +0000 (15:11 +0200)
commit5c78477386bf38a24bab024dddffcffec9a06bbe
tree3793b11bd093a7f0ebab72a12f6e8800de10c007
parent862ab6b7c7336efbf3063ab916c878e9230bbcc4
media: uapi/linux/cec.h: cec_msg_set_reply_to: zero flags

commit 599f6899051cb70c4e0aa9fd591b9ee220cb6f14 upstream.

The cec_msg_set_reply_to() helper function never zeroed the
struct cec_msg flags field, this can cause unexpected behavior
if flags was uninitialized to begin with.

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>
include/uapi/linux/cec.h