aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorXiaomeng Tong <[email protected]>2022-04-14 05:14:15 +0100
committerMauro Carvalho Chehab <[email protected]>2022-07-08 17:38:08 +0100
commit09b204eb9de9fdf07d028c41c4331b5cfeb70dd7 (patch)
tree97d22328d9c8973b40f280f602706759a20493c0 /tools/perf/scripts/python
parentce2203e7d6de90d0d94ca3c98dde4eff3a0accd0 (diff)
media: [PATCH] pci: atomisp_cmd: fix three missing checks on list iterator
The three bugs are here: __func__, s3a_buf->s3a_data->exp_id); __func__, md_buf->metadata->exp_id); __func__, dis_buf->dis_data->exp_id); The list iterator 's3a_buf/md_buf/dis_buf' will point to a bogus position containing HEAD if the list is empty or no element is found. This case must be checked before any use of the iterator, otherwise it will lead to a invalid memory access. To fix this bug, add an check. Use a new variable '*_iter' as the list iterator, while use the old variable '*_buf' as a dedicated pointer to point to the found element. Link: https://lore.kernel.org/linux-media/[email protected] Cc: [email protected] Fixes: ad85094b293e4 ("Revert "media: staging: atomisp: Remove driver"") Signed-off-by: Xiaomeng Tong <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions