Changeset 96ef672 in mainline for uspace/srv/devman/drv_conn.c


Ignore:
Timestamp:
2016-08-05T16:13:38Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c7840e9
Parents:
f527f58
Message:

Do not leave behind functions in device_tree.loc_functions hash table

When offlining or removing a function, make sure to unregister that
function from the device tree loc_functions hash table so that the
table does not contain any deallocated links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/drv_conn.c

    rf527f58 r96ef672  
    544544                if (fun->service_id != 0) {
    545545                        /* Unregister from location service */
    546                         rc = loc_service_unregister(fun->service_id);
     546                        rc = loc_unregister_tree_function(fun, &device_tree);
    547547                        if (rc != EOK) {
    548548                                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed unregistering tree "
Note: See TracChangeset for help on using the changeset viewer.