Bluetooth: hci_bcm: Add missing acpi_dev_free_resource_list()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Wed, 30 Sep 2015 13:26:41 +0000 (16:26 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 1 Oct 2015 08:03:37 +0000 (10:03 +0200)
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>
drivers/bluetooth/hci_bcm.c

index 0c791ac279d05bcb5bff9540f7404f93b1ea800d..1a538ad6bf2b6de2b795ac5ef7911bb894ee2ffa 100644 (file)
@@ -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) {
This page took 0.025038 seconds and 5 git commands to generate.