mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
23270e160d
commit
09dbf1b784
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue