]> git.baikalelectronics.ru Git - kernel.git/commit
net: wwan: iosm: use ACPI_FREE() but not kfree() in ipc_pcie_read_bios_cfg()
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Fri, 18 Nov 2022 06:24:47 +0000 (14:24 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Nov 2022 09:29:58 +0000 (10:29 +0100)
commit4551f2bf955ce764e3e490654c83a82392ecd090
tree851214555fef5f4996d90ff137c30d8c6a34f873
parent052d01b8c97fe45d18fb02b1e21bdd3e8873b6bb
net: wwan: iosm: use ACPI_FREE() but not kfree() in ipc_pcie_read_bios_cfg()

acpi_evaluate_dsm() should be coupled with ACPI_FREE() to free the ACPI
memory, because we need to track the allocation of acpi_object when
ACPI_DBG_TRACK_ALLOCATIONS enabled, so use ACPI_FREE() instead of kfree().

Fixes: 29a7d73e4fe2 ("net: wwan: iosm: fix memory leak in ipc_pcie_read_bios_cfg")
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Link: https://lore.kernel.org/r/20221118062447.2324881-1-bobo.shaobowang@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/wwan/iosm/iosm_ipc_pcie.c