Files
linux/drivers
Jeffy Chen 2ec1615017 driver core: Move device_links_purge() after bus_remove_device()
The current ordering of code in device_del() triggers a WARN_ON()
in device_links_purge(), because of an unexpected link status.

The device_links_unbind_consumers() call in device_release_driver()
has to take place before device_links_purge() for the status of all
links to be correct, so move the device_links_purge() call in
device_del() after the invocation of bus_remove_device() which calls
device_release_driver().

Fixes: 9ed9895370 (driver core: Functional dependencies tracking support)
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-20 16:33:13 +02:00
..
2017-09-28 13:11:46 +05:30
2017-10-07 13:17:07 +02:00
2017-10-04 17:11:53 -07:00
2017-08-29 13:46:35 +02:00
2017-09-19 08:36:19 +02:00
2017-08-30 14:03:42 -06:00