Changeset f89204ee in mainline
- Timestamp:
- 2018-11-27T16:48:25Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3083c74
- Parents:
- 1b555f0f
- git-author:
- Jakub Jermar <jakub@…> (2018-11-22 16:55:28)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-27 16:48:25)
- Location:
- uspace/srv/devman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devtree.c
r1b555f0f rf89204ee 144 144 } 145 145 146 fun_add_ref(fun); 147 insert_fun_node(tree, fun, str_dup(""), NULL); 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 } 148 151 149 152 match_id_t *id = create_match_id(); -
uspace/srv/devman/drv_conn.c
r1b555f0f rf89204ee 284 284 285 285 fun_node_t *fun = create_fun_node(); 286 /* One reference for creation, one for us */ 287 fun_add_ref(fun); 286 /* 287 * Hold a temporary reference while we work with fun. The reference from 288 * create_fun_node() moves to the device tree. 289 */ 288 290 fun_add_ref(fun); 289 291 fun->ftype = ftype; … … 300 302 fun_busy_unlock(fun); 301 303 fun_del_ref(fun); 302 delete_fun_node(fun);304 fun_del_ref(fun); /* fun is destroyed */ 303 305 async_answer_0(call, ENOMEM); 304 306 return;
Note:
See TracChangeset
for help on using the changeset viewer.