aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorXiaomeng Tong <[email protected]>2022-04-14 12:02:31 +0800
committerMartin K. Petersen <[email protected]>2022-04-26 08:51:56 -0400
commit036a45aa587a10fa2abbd50fbd0f6c4cfc44f69f (patch)
treee3087deb2d87155d478a64e0b8be10837e1ddb17 /tools/perf/scripts/python/netdev-times.py
parent505420bd5543e806288a47ae3d2abeec8fc9642a (diff)
scsi: dc395x: Fix a missing check on list iterator
The bug is here: p->target_id, p->target_lun); The list iterator 'p' 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 an invalid memory access. To fix this bug, add a check. Use a new variable 'iter' as the list iterator, and use the original variable 'p' as a dedicated pointer to point to the found element. Link: https://lore.kernel.org/r/[email protected] Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: [email protected] Signed-off-by: Xiaomeng Tong <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions