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
dvb-frontends
firewire
i2c
mmc
parport
pci
platform msm: vidc: ensure codec count is in supported session range 2019-07-27 22:08:45 +02:00
radio
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