linux/drivers/media/usb/uvc
Nadav Amit 89dd34caf7 media: uvcvideo: Fix uvc_alloc_entity() allocation alignment
The use of ALIGN() in uvc_alloc_entity() is incorrect, since the size of
(entity->pads) is not a power of two. As a stop-gap, until a better
solution is adapted, use roundup() instead.

Found by a static assertion. Compile-tested only.

Fixes: 4ffc2d89f3 ("uvcvideo: Register subdevices for each entity")

Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-11 08:43:14 -04:00
..
Kconfig [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c media: uvcvideo: Make uvc_control_mapping menu_info field const 2018-09-11 08:41:17 -04:00
uvc_debugfs.c media: uvcvideo: Remove unnecessary NULL check before debugfs_remove_recursive 2018-09-11 08:42:10 -04:00
uvc_driver.c media: uvcvideo: Fix uvc_alloc_entity() allocation alignment 2018-09-11 08:43:14 -04:00
uvc_entity.c media: uvcvideo: Constify video_subdev structures 2017-08-20 08:10:24 -04:00
uvc_isight.c media: uvcvideo: Use internal kernel integer types 2018-02-23 02:20:52 -05:00
uvc_metadata.c media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_queue.c media updates for v4.16-rc1 2018-02-06 11:27:48 -08:00
uvc_status.c media: uvcvideo: Send a control event when a Control Change interrupt arrives 2018-07-27 06:39:57 -04:00
uvc_v4l2.c media: uvcvideo: Send a control event when a Control Change interrupt arrives 2018-07-27 06:39:57 -04:00
uvc_video.c media: uvcvideo: Handle control pipe protocol STALLs 2018-07-27 06:39:57 -04:00
uvcvideo.h media: uvcvideo: Make uvc_control_mapping menu_info field const 2018-09-11 08:41:17 -04:00