diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-01-24 08:37:04 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-01-30 07:24:06 -0500 |
commit | 3ee6d040719ae09110e5cdf24d5386abe5d1b776 (patch) | |
tree | 949841cd79b22a9a1a974f29b9412dc8b6359f19 /drivers/media | |
parent | 181a4a2d5a0a7b43cab08a70710d727e7764ccdd (diff) | |
download | op-kernel-dev-3ee6d040719ae09110e5cdf24d5386abe5d1b776.zip op-kernel-dev-3ee6d040719ae09110e5cdf24d5386abe5d1b776.tar.gz |
media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
The result of the VIDIOC_PREPARE_BUF ioctl was never copied back
to userspace since it was missing in the switch.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: <stable@vger.kernel.org> # for v4.15 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c index e48d590..76ed43e 100644 --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c @@ -1052,6 +1052,7 @@ static long do_video_ioctl(struct file *file, unsigned int cmd, unsigned long ar err = put_v4l2_create32(&karg.v2crt, up); break; + case VIDIOC_PREPARE_BUF: case VIDIOC_QUERYBUF: case VIDIOC_QBUF: case VIDIOC_DQBUF: |