aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorBernard Zhao <[email protected]>2020-11-17 18:55:01 -0800
committerAlex Deucher <[email protected]>2020-11-24 12:04:39 -0500
commit95666c6cfe9247610efbd68c228f0831d4c18a51 (patch)
tree842a47e554b2d8ea0c84aee29737be8d2bcfade1 /tools/perf/scripts/python/export-to-sqlite.py
parentb14a04fee90889b011509fe6ade1ddf93fdd9f49 (diff)
amd/amdgpu: use kmalloc_array to replace kmalloc with multiply
Fix check_patch.pl warning: WARNING: Prefer kmalloc_array over kmalloc with multiply +bps = kmalloc(align_space * sizeof((*data)->bps), GFP_KERNEL); WARNING: Prefer kmalloc_array over kmalloc with multiply +bps_bo = kmalloc(align_space * sizeof((*data)->bps_bo), GFP_KERNEL); kmalloc_array has multiply overflow check, which will be safer. Reviewed-by: Christian König <[email protected]> Signed-off-by: Bernard Zhao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions