]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2022 14:00:25 +0000 (14:00 +0000)
commitadc7ab9eb694ff8ab17f0f4b5bf46db3ffe585a4
tree290286349726dd30a3186288c9e020cc2de26df1
parentaafcf1149d849d657686f7dbd92d2368e23be3b2
net: wwan: iosm: fix memory leak in ipc_pcie_read_bios_cfg

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: 13620cd57f88 ("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>
drivers/net/wwan/iosm/iosm_ipc_pcie.c