aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2020-08-09 22:34:06 +0200
committerAlex Deucher <[email protected]>2020-08-10 18:06:10 -0400
commit78484d7c747e30468b35bd5f19edf602f50162a7 (patch)
tree9e95af6e7ee57a8664ad9aae18fb84ce46be7fed /tools/perf/scripts/python/export-to-sqlite.py
parentf87812284172a9809820d10143b573d833cd3f75 (diff)
drm: amdgpu: Use the correct size when allocating memory
When '*sgt' is allocated, we must allocated 'sizeof(**sgt)' bytes instead of 'sizeof(*sg)'. The sizeof(*sg) is bigger than sizeof(**sgt) so this wastes memory but it won't lead to corruption. Fixes: f44ffd677fb3 ("drm/amdgpu: add support for exporting VRAM using DMA-buf v3") Reviewed-by: Christian König <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions