linux/drivers/media/platform
Hans Verkuil cc7d2dfb75 [media] v4l2_plane_pix_format: use __u32 bytesperline instead of __u16
While running v4l2-compliance tests on vivid I suddenly got errors due to
a call to vmalloc_user with size 0 from vb2.

Digging deeper into the cause I discovered that this was due to the fact that
struct v4l2_plane_pix_format defines bytesperline as a __u16 instead of a __u32.

The test I was running selected a format of 4 * 4096 by 4 * 2048 with a 32
bit pixelformat.

So bytesperline was 4 * 4 * 4096 = 65536, which becomes 0 in a __u16. And
bytesperline * height is suddenly 0 as well. While the vivid driver may be
a virtual driver, it is to be expected that this limit will be hit for real
hardware as well in the near future: 8k deep-color video will already reach
it.

The solution is to change the type to __u32. The only drivers besides vivid
that use the multiplanar API are little-endian ARM and SH platforms (exynos,
ti-vpe, vsp1), so this is safe.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-02 23:54:47 -03:00
..
am437x [media] media: am437x-vpfe: embed video_device struct in vpfe_device 2015-04-02 18:10:44 -03:00
blackfin [media] media: blackfin: bfin_capture: embed video_device struct in bcap_device 2015-04-02 18:11:50 -03:00
coda [media] coda: simplify check in coda_buf_queue 2015-02-02 10:38:21 -02:00
davinci [media] media: davinci: vpfe_capture: embed video_device 2015-04-02 23:54:00 -03:00
exynos4-is [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
exynos-gsc [media] media: exynos-gsc: use vb2_ops_wait_prepare/finish helper 2014-12-22 14:34:35 -02:00
marvell-ccic [media] v4l2-subdev: add support for the new enum_frame_interval 'which' field 2015-03-23 12:01:15 -07:00
omap [media] media: omap/omap_vout: fix type of input members to omap_vout_setup_vrfb_bufs() 2015-03-03 11:22:58 -03:00
omap3isp [media] omap3isp: Deprecate platform data support 2015-04-02 16:48:07 -03:00
s3c-camif [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
s5p-g2d [media] s5p-g2d: remove unnecessary version.h inclusion 2015-02-02 09:58:23 -02:00
s5p-jpeg Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
s5p-mfc [media] media: s5p-mfc: fix broken pointer cast on 64bit arch 2015-04-02 17:08:28 -03:00
s5p-tv [media] v4l2_plane_pix_format: use __u32 bytesperline instead of __u16 2015-04-02 23:54:47 -03:00
soc_camera [media] rcar-vin: Don't implement empty optional clock operations 2015-04-02 18:37:37 -03:00
ti-vpe [media] media: ti-vpe: Use mem-to-mem ioctl helpers 2015-02-02 13:34:18 -02:00
vivid [media] vivid-tpg.c: fix wrong Bt.2020 coefficients 2015-04-02 22:08:19 -03:00
vsp1 [media] v4l2-subdev: add support for the new enum_frame_size 'which' field 2015-03-23 11:48:55 -07:00
arv.c [media] media: remove the setting of the flag V4L2_FL_USE_FH_PRIO 2014-07-04 16:14:59 -03:00
fsl-viu.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
Kconfig [media] omap3isp: Move the syscon register out of the ISP register maps 2015-04-02 16:44:18 -03:00
m2m-deinterlace.c [media] m2m-deinterlace: embed video_device 2015-04-02 23:35:21 -03:00
Makefile [media] media: platform: add VPFE capture driver support for AM437X 2014-12-23 12:09:58 -02:00
mx2_emmaprp.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
sh_veu.c [media] media: sh_veu: use vb2_ops_wait_prepare/finish helper 2014-12-22 14:35:13 -02:00
sh_vou.c [media] sh_vou: fix memory leak on error paths in sh_vou_open() 2015-03-02 14:46:48 -03:00
timblogiw.c media: platform: drop owner assignment from platform_drivers 2014-10-20 16:20:44 +02:00
via-camera.c [media] v4l2-subdev: add support for the new enum_frame_interval 'which' field 2015-03-23 12:01:15 -07:00
via-camera.h
vim2m.c [media] vim2m: embed video_device 2015-04-02 23:24:40 -03:00