]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: wwan: iosm: fix memory leak in ipc_pcie_read_bios_cfg
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Mon, 7 Nov 2022 07:34:49 +0000 (13:04 +0530)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:04 +0000 (13:59 +0100)
commite44713e2a882e8fb5478fb0e33fef128c84673cf
tree59a7254e1bee5976abadc1e2f896efa752539ea6
parent603c867100310df0fa6e0f380d5c67ce4ad77b5a
net: wwan: iosm: fix memory leak in ipc_pcie_read_bios_cfg

[ Upstream commit d38a648d2d6cc7bee11c6f533ff9426a00c2a74c ]

ipc_pcie_read_bios_cfg() is using the acpi_evaluate_dsm() to
obtain the wwan power state configuration from BIOS but is
not freeing the acpi_object. The acpi_evaluate_dsm() returned
acpi_object to be freed.

Free the acpi_object after use.

Fixes: 7e98d785ae61 ("net: iosm: entry point")
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 13b1ea861e8aeb701bcfbfe436b943efa2d44029)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/net/wwan/iosm/iosm_ipc_pcie.c