]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Add the missed acpi_put_table() to fix memory leak
authorHanjun Guo <guohanjun@huawei.com>
Fri, 4 Nov 2022 09:50:02 +0000 (17:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:02 +0000 (11:41 +0100)
commit2e122603a8644359e7370f5f77c6b4c4cdc139e0
treeaca4b17d1f048d19f444d671969b61445a20172d
parentcfcab7d173ff2db87606642d5fd01e400dc21306
drm/radeon: Add the missed acpi_put_table() to fix memory leak

[ Upstream commit 09b1fc6b90617b83865ec8282d124eaed010bca7 ]

When the radeon driver reads the bios information from ACPI
table in radeon_acpi_vfct_bios(), it misses to call acpi_put_table()
to release the ACPI memory after the init, so add acpi_put_table()
properly to fix the memory leak.

v2: fix text formatting (Alex)

Fixes: a5a96daa726d ("drm/radeon: implement ACPI VFCT vbios fetch (v3)")
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/radeon/radeon_bios.c