]> git.hungrycats.org Git - linux/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, 10 Oct 2024 10:01:00 +0000 (12:01 +0200)
commit6e9086eba618bccf1ff661826c6a4cfe7d934e7e
tree01dd4f64f20af8e2171648981b313f0fbe10d09e
parenta854c234d8f3470616f8db10e885122dcebd742f
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