Commit 49a9e431 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

Merge branch 'acpi-fixes'

* acpi-fixes:
  ACPI / scan: Fix memory leak on acpi_scan_init_hotplug() error path
parents e50caa95 7a26b530
...@@ -1785,7 +1785,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type) ...@@ -1785,7 +1785,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type)
acpi_set_pnp_ids(handle, &pnp, type); acpi_set_pnp_ids(handle, &pnp, type);
if (!pnp.type.hardware_id) if (!pnp.type.hardware_id)
return; goto out;
/* /*
* This relies on the fact that acpi_install_notify_handler() will not * This relies on the fact that acpi_install_notify_handler() will not
...@@ -1800,6 +1800,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type) ...@@ -1800,6 +1800,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type)
} }
} }
out:
acpi_free_pnp_ids(&pnp); acpi_free_pnp_ids(&pnp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment