linux/drivers/media/platform/s5p-tv
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
..
hdmi_drv.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
hdmiphy_drv.c [media] s5p-tv: hdmiphy: Remove deprecated video-level DV timings operation 2014-05-25 12:45:52 -03:00
Kconfig PM / Kconfig: Replace PM_RUNTIME with PM in dependencies 2014-12-13 00:44:04 +01:00
Makefile
mixer_drv.c media: platform: s5p-tv: drop owner assignment from platform_drivers 2014-10-20 16:20:49 +02:00
mixer_grp_layer.c [media] media: Remove unnecessary semicolons 2013-10-17 05:51:57 -03:00
mixer_reg.c [media] s5p-tv: Add missing braces around sizeof in mixer_reg.c 2013-01-06 09:36:33 -02:00
mixer_video.c [media] v4l2_plane_pix_format: use __u32 bytesperline instead of __u16 2015-04-02 23:54:47 -03:00
mixer_vp_layer.c [media] media: Remove unnecessary semicolons 2013-10-17 05:51:57 -03:00
mixer.h [media] media_tree: Fix spelling errors 2013-11-29 14:43:50 -02:00
regs-hdmi.h
regs-mixer.h
regs-sdo.h
regs-vp.h
sdo_drv.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
sii9234_drv.c [media] s5p-tv: Simplify the return logic 2014-09-03 17:59:27 -03:00