Ignore:
File:
1 edited

Legend:

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

    r3083c74 r09ab0a9a  
    144144        }
    145145
    146         if (!insert_fun_node(tree, fun, str_dup(""), NULL)) {
    147                 fun_del_ref(fun);       /* fun is destroyed */
    148                 fibril_rwlock_write_unlock(&tree->rwlock);
    149                 return false;
    150         }
     146        fun_add_ref(fun);
     147        insert_fun_node(tree, fun, str_dup(""), NULL);
    151148
    152149        match_id_t *id = create_match_id();
     
    165162        }
    166163
     164        dev_add_ref(dev);
    167165        insert_dev_node(tree, dev, fun);
    168166
Note: See TracChangeset for help on using the changeset viewer.