]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-ioctl: Clear only per-plane reserved fields
authorThierry Reding <treding@nvidia.com>
Thu, 10 Jan 2019 10:48:39 +0000 (05:48 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 16:10:49 +0000 (11:10 -0500)
commit05b1d8dacc0bb6860673b9a3bff733042f255061
tree24473df41ed54fce92163e254de27d4279e17db2
parent5ada4c1885c3ebec7f8758c3968a4b57e1d3dc0e
media: v4l2-ioctl: Clear only per-plane reserved fields

Currently the IOCTL code clears everything after the per-plane
bytesperline field in struct v4l2_format. The intent was to only clear
the per-plane reserved fields since there is data in struct v4l2_format
after the per-plane format data that userspace may have filled in.

Fixes: 51abed133e54 ("media: v4l2-ioctl: Zero v4l2_plane_pix_format reserved fields")
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: fix checkpatch alignment warning]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c