OpenCloudOS-Kernel/drivers/media/platform/soc_camera
Laurent Pinchart b6ee3f0dcf media: v4l: async: Move async subdev notifier operations to a separate structure
The async subdev notifier .bound(), .unbind() and .complete() operations
are function pointers stored directly in the v4l2_async_subdev
structure. As the structure isn't immutable, this creates a potential
security risk as the function pointers are mutable.

To fix this, move the function pointers to a new
v4l2_async_subdev_operations structure that can be made const in
drivers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-10-31 13:51:45 -04:00
..
Kconfig [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00
Makefile [media] atmel-isi: move out of soc_camera to atmel 2017-04-10 08:00:06 -03:00
sh_mobile_ceu_camera.c dma-coherent: remove the DMA_MEMORY_MAP and DMA_MEMORY_IO flags 2017-09-01 11:59:17 +02:00
soc_camera.c media: v4l: async: Move async subdev notifier operations to a separate structure 2017-10-31 13:51:45 -04:00
soc_camera_platform.c [media] media: platform: soc_camera_platform : constify v4l2_subdev_* structures 2017-01-30 14:47:21 -02:00
soc_mediabus.c media: v4l: use WARN_ON(1) instead of __WARN() 2017-08-08 06:34:36 -04:00
soc_scale_crop.c [media] soc-camera: fix rectangle adjustment in cropping 2017-03-23 14:45:59 -03:00
soc_scale_crop.h [media] v4l2: remove g/s_crop from video ops 2016-08-24 09:46:09 -03:00