]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI / dock: Walk list in reverse order during removal of devices
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 30 Jun 2013 21:46:42 +0000 (23:46 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 Jul 2013 23:33:11 +0000 (01:33 +0200)
commit37f908778f20bbcc35ab9a98a5b584329c6abf08
tree1b8dfacd079665a19dee7a876fb79f68e75da505
parent96c0a4d4902c3d5f56bde95d3e2d96689ca64b6d
ACPI / dock: Walk list in reverse order during removal of devices

If there are indirect dependencies between devices in a dock
station's dependent devices list, they may be broken if the devices
are removed in the same order in which they have been added.

For this reason, make the code in handle_eject_request() walk the
list of dependent devices in reverse order.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/acpi/dock.c