aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJustin Green <[email protected]>2022-06-15 16:38:27 +0100
committerMauro Carvalho Chehab <[email protected]>2022-06-27 09:11:12 +0100
commitf5caaa47f55fa742f1a230e5b4258c139e223c74 (patch)
treec23382fdeb28e50eb31b23a0a82078cfa10216d9 /tools/perf/scripts/python
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 <[email protected]> Suggested-by: Andres Calderon Jaramillo <[email protected]> Reviewed-by: Nicolas Dufresne <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions