]> 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>
Sat, 31 Dec 2022 12:32:10 +0000 (13:32 +0100)
commit290d1bec4a95392eb48f26ce0171bd52fee4ea16
tree054d46d46bc9877b880d0a7ea8b9469628a81830
parent57ec499ff5d14b1cf681d7f34b8cd5737ce07049
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