aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorRafael Mendonca <rafaelmendsr@gmail.com>2022-10-17 22:27:50 -0300
committerAlex Deucher <alexander.deucher@amd.com>2022-10-24 14:34:27 -0400
commit7b5a4d7b9e2952a15c8d2b2391dfacd7ce841a1a (patch)
treede593280b53e96e93f382781fea5397093abf6ea /tools/perf/scripts/python/exported-sql-viewer.py
parentdrm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x (diff)
downloadlinux-7b5a4d7b9e2952a15c8d2b2391dfacd7ce841a1a.tar.gz
linux-7b5a4d7b9e2952a15c8d2b2391dfacd7ce841a1a.zip
drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()
If the number of pages from the userptr BO differs from the SG BO then the allocated memory for the SG table doesn't get freed before returning -EINVAL, which may lead to a memory leak in some error paths. Fix this by checking the number of pages before allocating memory for the SG table. Fixes: 264fb4d332f5 ("drm/amdgpu: Add multi-GPU DMA mapping helpers") Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions