diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-09-30 16:26:41 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-10-01 11:03:37 +0300 |
commit | 09dbf1b7847ca09afb4616021fdc928452511888 (patch) | |
tree | e4310ddaccdf9b24b10b9b11ad00dd3c78ab4487 /drivers/bluetooth/hci_bcm.c | |
parent | 23270e160dd5d240dbf73722c1df9ff3044d7bc9 (diff) | |
download | linux-09dbf1b7847ca09afb4616021fdc928452511888.tar.xz |
Bluetooth: hci_bcm: Add missing acpi_dev_free_resource_list()
Caller of acpi_dev_get_resources() should free the constructed resource
list by calling the acpi_dev_free_resource_list() in order to avoid memory
leak.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_bcm.c')
-rw-r--r-- | drivers/bluetooth/hci_bcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 0c791ac279d0..1a538ad6bf2b 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -706,6 +706,7 @@ static int bcm_acpi_probe(struct bcm_device *dev) return 0; acpi_dev_get_resources(adev, &resources, bcm_resource, dev); + acpi_dev_free_resource_list(&resources); dmi_id = dmi_first_match(bcm_wrong_irq_dmi_table); if (dmi_id) { |