android_kernel_samsung_msm8976/drivers/media
Sakari Ailus a97d6bfec7 media: v4l: ioctl: Validate num_planes for debug messages
commit 7fe9f01c04c2673bd6662c35b664f0f91888b96f upstream.

The num_planes field in struct v4l2_pix_format_mplane is used in a loop
before validating it. As the use is printing a debug message in this case,
just cap the value to the maximum allowed.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 22:10:17 +02:00
..
common
dvb-core This is the 3.10.99 stable release 2017-04-18 17:17:46 +02:00
dvb-frontends
firewire
i2c
mmc
parport
pci This is the 3.10.102 stable release 2017-04-18 17:22:08 +02:00
platform msm: vidc: ensure codec count is in supported session range 2019-07-27 22:08:45 +02:00
radio Merge tag 'LA.BR.1.3.6-04010-8976.0' of https://source.codeaurora.org/quic/la/kernel/msm-3.10 into HEAD 2017-06-09 23:21:11 +02:00
rc ir-core: fix gcc-7 warning on bool arithmetic 2019-07-27 21:44:38 +02:00
tuners xc2028: Fix use-after-free bug properly 2019-07-27 21:43:23 +02:00
usb media: v4l2-ctrls.c/uvc: zero v4l2_event 2019-07-27 22:08:54 +02:00
v4l2-core media: v4l: ioctl: Validate num_planes for debug messages 2019-07-27 22:10:17 +02:00
Kconfig
Makefile
media-device.c
media-devnode.c
media-entity.c