aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-jpeg.h
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2021-03-10 11:46:39 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-22 11:51:44 +0100
commit2f65fcee30863ac85203f3dafd5a816e55aa245c (patch)
treefb865398d232f6be81a31c154a8e3d98598d9461 /include/media/v4l2-jpeg.h
parentmedia: Add maintainer for IMX jpeg v4l2 driver (diff)
downloadlinux-dev-2f65fcee30863ac85203f3dafd5a816e55aa245c.tar.xz
linux-dev-2f65fcee30863ac85203f3dafd5a816e55aa245c.zip
media: videobuf2: Explicitly state max size of planes
The plane size needs to be PAGE_ALIGNED, so it is not possible to have sizes bigger than MAX_INT - PAGE_SIZE. We already check for overflows when that happen: if (size < vb->planes[plane].length) goto free; But it is good to explicitly state our max allowed value, in order to align with the driver expectations. Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media/v4l2-jpeg.h')
0 files changed, 0 insertions, 0 deletions