diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-10-20 20:01:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-20 16:33:13 +0200 |
commit | 2ec16150179888b81717d1d3ce84e634f4736af2 (patch) | |
tree | 86803f71176312cfd75b08154690a1a353266334 /fs/debugfs/inode.c | |
parent | 82d8ba717ccb54dd803624db044f351b2a54d000 (diff) | |
download | linux-stable-2ec16150179888b81717d1d3ce84e634f4736af2.tar.gz linux-stable-2ec16150179888b81717d1d3ce84e634f4736af2.tar.bz2 linux-stable-2ec16150179888b81717d1d3ce84e634f4736af2.zip |
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: 9ed9895370ae (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>
Diffstat (limited to 'fs/debugfs/inode.c')
0 files changed, 0 insertions, 0 deletions