提交 09dbf1b7 编写于 作者: J Jarkko Nikula 提交者: Marcel Holtmann

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: NJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 23270e16
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册