]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32
authorTiffany Lin <tiffany.lin@mediatek.com>
Mon, 14 Mar 2016 11:16:14 +0000 (08:16 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:50 +0000 (18:18 -0700)
commit084043be4eda8ba06b7497bf4aa41b0d1feef490
treed0564428470cb4935b2d08e89b38462d19a82daf
parent7bb265913bb3f3459ab5fc4efc812dd97b288840
media: v4l2-compat-ioctl32: fix missing reserved field copy in put_v4l2_create32

commit baf43c6eace43868e490f18560287fa3481b2159 upstream.

In v4l2-compliance utility, test VIDIOC_CREATE_BUFS will check whether reserved
filed of v4l2_create_buffers filled with zero
Reserved field is filled with zero in v4l_create_bufs.
This patch copy reserved field of v4l2_create_buffer from kernel space to user
space

Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c