media: v4l2-ioctl.c: zero reserved fields for S/TRY_FMT
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Sun, 10 Nov 2019 06:27:04 +0000 (07:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 15:43:24 +0000 (16:43 +0100)
commitf008896751c611aae2db5e0607ae59218462d553
tree990942c23a7a8dee52d93cba382ed157fcc540d6
parentcbd56515be5a8ea97134ef762b7a2923b94cb9c4
media: v4l2-ioctl.c: zero reserved fields for S/TRY_FMT

commit ee8951e56c0f960b9621636603a822811cef3158 upstream.

v4l2_vbi_format, v4l2_sliced_vbi_format and v4l2_sdr_format
have a reserved array at the end that should be zeroed by drivers
as per the V4L2 spec. Older drivers often do not do this, so just
handle this in the core.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/v4l2-core/v4l2-ioctl.c