aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorRicardo Ribalda <[email protected]>2024-04-04 17:56:18 +0000
committerLaurent Pinchart <[email protected]>2024-06-17 02:39:09 +0300
commitc8931ef55bd325052ec496f242aea7f6de47dc9c (patch)
tree378e69f5f4fd323c0f969b3ae0887eea22b50f6f /tools/perf/scripts/python/bin
parent85fbe91a7c9210bb30638846b551fa5d3cb7bc4c (diff)
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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions