commit | 2d56d5e87b132b4f7ba33b87cebd1f0065e23325 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Wed Nov 14 10:58:08 2012 +0200 |
committer | Johan Hedberg <johan.hedberg@intel.com> | Wed Nov 14 10:58:08 2012 +0200 |
tree | 27338dd0dcb2c36bc50c31742ec1e9dca70f813d | |
parent | 99cb1dbc8f85ba0b78597e03b655ee6348c624fa [diff] |
core: Fix manager_cleanup order This patch fixes the order in which things are cleaned up in manager_cleanup. The profiles need to be cleaned up first (since they are higher level constructs than adapters and devices) and we cannot remove the adapter from the manager list before calling adapter_remove since functions within adapter_remove may remove service records which in turn relies on having the adapter present in the manager list.