commit | 471d219c3c72137e16f3b299280254417a48863b | [log] [tgz] |
---|---|---|
author | Ricardo Ribalda <ribalda@chromium.org> | Wed Mar 10 11:46:39 2021 +0100 |
committer | Ricardo Ribalda <ribalda@chromium.org> | Fri Mar 12 15:25:43 2021 +0100 |
tree | 9f077af704e1d2e2100879bc81ee6e30cc8420cf | |
parent | e710df451fe7bc09c81f8804cdcecd18783ea308 [diff] |
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>