summaryrefslogtreecommitdiff
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorJustin Green <greenjustin@chromium.org>2022-06-15 16:38:27 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-06-27 09:11:12 +0100
commitf5caaa47f55fa742f1a230e5b4258c139e223c74 (patch)
treec23382fdeb28e50eb31b23a0a82078cfa10216d9 /drivers/media/pci
parentd4de27a9b1eadd33a2e40de87a646d1bf5fef756 (diff)
media: mediatek: vcodec: return EINVAL if plane is too small
Modify vb2ops_vdec_buf_prepare to return EINVAL if the size of the plane is less than the size of the image. Currently we just log an error and return 0 anyway, which may cause a buffer overrun bug. Signed-off-by: Justin Green <greenjustin@chromium.org> Suggested-by: Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/pci')
0 files changed, 0 insertions, 0 deletions