Files
linux-stable-mirror/drivers
Nadav Amit 04d3e9c446 media: uvcvideo: Fix uvc_alloc_entity() allocation alignment
commit 89dd34caf7 upstream.

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>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-09 09:18:21 +02:00
..
…
…
…
2019-05-31 06:47:34 -07:00
…
…
…
2019-05-14 19:18:42 +02:00
…
…
…
…
2018-12-21 14:13:14 +01:00
2019-05-14 19:18:42 +02:00
…
…
…
…
…
…
…
…
…
2018-12-21 14:13:13 +01:00
…
…
…
2019-05-31 06:47:35 -07:00
…
…
…
…
2019-04-27 09:35:34 +02:00
…
2019-05-31 06:47:21 -07:00
…
…