linux/drivers/media
Ricardo Ribalda c8931ef55b media: uvcvideo: Enforce alignment of frame and interval
Struct uvc_frame and interval (u32*) are packaged together on
streaming->formats on a single contiguous allocation.

Right now they are allocated right after uvc_format, without taking into
consideration their required alignment.

This is working fine because both structures have a field with a
pointer, but it will stop working when the sizeof() of any of those
structs is not a multiple of the sizeof(void*).

Enforce that alignment during the allocation.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240404-uvc-align-v2-1-9e104b0ecfbd@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2024-06-17 02:39:09 +03:00
..
cec Mainly singleton patches, documented in their respective changelogs. 2024-05-19 14:02:03 -07:00
common media: siano: Use flex arrays for sms_firmware 2024-05-31 13:51:16 +02:00
dvb-core media: dvbdev: Initialize sbuf 2024-04-08 13:48:19 +02:00
dvb-frontends media: dvb-frontend/mxl5xx: Refactor struct MBIN_FILE_T and MBIN_SEGMENT_T 2024-06-15 10:49:21 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: i2c: ov5647: replacing of_node_put with __free(device_node) 2024-06-15 11:16:40 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-04-22 11:41:04 +02:00
mmc media: mmc: siano: simplify module initialization 2024-04-08 13:48:19 +02:00
pci media: ipu-bridge: Add HIDs from out of tree IPU6 driver ipu-bridge copy 2024-06-15 11:16:39 +02:00
platform media: c8sectpfe: Add missing parameter names 2024-06-15 10:49:20 +02:00
radio media: si470x: add missing MODULE_DESCRIPTION() macro 2024-06-15 10:49:20 +02:00
rc media: imon: Fix race getting ictx->lock 2024-05-31 14:20:40 +02:00
spi media: gs1662: remove unused struct 'gs_reg_fmt_custom' 2024-05-31 13:51:16 +02:00
test-drivers media: v4l2: Add mem2mem helpers for REMOVE_BUFS ioctl 2024-03-25 12:00:44 +01:00
tuners media: tda9887: add missing MODULE_DESCRIPTION() macro 2024-06-15 10:49:20 +02:00
usb media: uvcvideo: Enforce alignment of frame and interval 2024-06-17 02:39:09 +03:00
v4l2-core media: v4l: add missing MODULE_DESCRIPTION() macros 2024-06-15 11:16:40 +02:00
Kconfig
Makefile