diff options
author | Ming Qian <ming.qian@nxp.com> | 2022-03-11 08:17:07 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-18 09:32:10 +0300 |
commit | a9f7224c67b3357e6585e6ddbcabd0523ca0f39f (patch) | |
tree | a7651d8431b0b042757c14c4c5268ad16cf5f9a5 /tools/perf/scripts/python | |
parent | 05a03eff34ba7de2d3e50a92961850d5e0f14f34 (diff) | |
download | linux-a9f7224c67b3357e6585e6ddbcabd0523ca0f39f.tar.xz |
media: amphion: fix some issues to improve robust
fix some issues reported by Dan,
1. fix some signedness bug
2. don't use u32 as function return value
3. prevent a divide by zero bug
4. Just return zero on success, don't return a known parameter
5. check the validity of some variables
6. reset buffer state when return buffers
7. make sure the ALIGN won't wrap to zero
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions