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:45:33 +0000 (16:45 +0100)
commitd5fd8ac3fcc52dce384c54130a56e13719b2eaeb
treebc095e71a297431815500a472d60f203dd13be69
parent40b1747b03684f03827b6323a17e4aa67af1e307
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