ACPI / scan: Fix acpi_bus_id_list bookkeeping
authorLukas Wunner <lukas@wunner.de>
Wed, 25 Nov 2015 20:19:55 +0000 (21:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Dec 2015 00:30:26 +0000 (01:30 +0100)
commitca9dc8d42b30e2d766b471fe5ecf0c71fd309c8f
treee6aab971b8171fcacee6c9e718111b6e7d6c5d90
parente399037e06beec6d190a302ff5e4fee4aae77c50
ACPI / scan: Fix acpi_bus_id_list bookkeeping

acpi_device_add() allocates and adds an element to acpi_bus_id_list
(or increments the instance count if the device's HID is already
present in the list), but the element is never deleted from the list
nor freed. Fix it.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c