linux/drivers/gpu/drm/amd
Hanjun Guo 91a5950181 drm/amdkfd: Put ACPI table after using it
[ Upstream commit c4cb773c70 ]

The acpi_get_table() should be coupled with acpi_put_table() if
the mapped table is not used at runtime to release the table
mapping which can prevent the memory leak.

In kfd_create_crat_image_acpi(), crat_table is copied to pcrat_image,
and in kfd_create_vcrat_image_cpu(), the acpi_table is only used to
get the OEM information, so those two table mappings need to be released
after using it.

Fixes: 174de876d6 ("drm/amdkfd: Group up CRAT related functions")
Fixes: 520b8fb755 ("drm/amdkfd: Add topology support for CPUs")
Signed-off-by: Hanjun Guo <guohanjun@huawei.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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2020-12-30 11:53:10 +01:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: fix compute queue priority if num_kcq is less than 4 2020-12-30 11:53:09 +01:00
amdkfd drm/amdkfd: Put ACPI table after using it 2020-12-30 11:53:10 +01:00
display drm/amdgpu: fix build_coefficients() argument 2020-12-30 11:53:00 +01:00
include drm/amdgpu: add Green_Sardine APU flag 2020-11-04 08:30:48 -05:00
pm drm/amd/pm: typo fix (CUSTOM -> COMPUTE) 2020-12-09 22:38:10 -05:00