diff options
| author | Guangbin Huang <[email protected]> | 2021-03-29 11:57:47 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-03-29 13:21:00 -0700 |
| commit | a2ee6fd28a190588e142ad8ea9d40069cd3c9f98 (patch) | |
| tree | 96358e12108403cd08ced46118d4e1288cf301af /tools/perf/scripts/python/sched-migration.py | |
| parent | 64ff58fa3bfcf26bc893ea425a0553b561ca5298 (diff) | |
net: hns3: remediate a potential overflow risk of bd_num_list
The array size of bd_num_list is a fixed value, it may have potential
overflow risk when array size of hclge_dfx_bd_offset_list is greater
than that fixed value. So modify bd_num_list as a pointer and allocate
memory for it according to array size of hclge_dfx_bd_offset_list.
Signed-off-by: Guangbin Huang <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions