diff options
author | Aleksandr Mishin <[email protected]> | 2024-07-10 15:39:49 +0300 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-08-26 09:49:57 -0700 |
commit | 62fdaf9e8056e9a9e6fe63aa9c816ec2122d60c6 (patch) | |
tree | 2a0e630a2c2adbbb14340833c30f255e92bdf131 /tools/perf/scripts/python/parallel-perf.py | |
parent | b1703d5f794d755e0d4ce1f22eee1215acb8ce02 (diff) |
ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node()
In ice_sched_add_root_node() and ice_sched_add_node() there are calls to
devm_kcalloc() in order to allocate memory for array of pointers to
'ice_sched_node' structure. But incorrect types are used as sizeof()
arguments in these calls (structures instead of pointers) which leads to
over allocation of memory.
Adjust over allocation of memory by correcting types in devm_kcalloc()
sizeof() arguments.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reviewed-by: Przemek Kitszel <[email protected]>
Signed-off-by: Aleksandr Mishin <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions