Changeset 9df0f64 in mainline for uspace/lib/drv/generic/driver.c
- Timestamp:
- 2018-11-27T16:50:40Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e199ab3
- Parents:
- b10e9367
- git-author:
- Jakub Jermar <jakub@…> (2018-11-22 20:05:37)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-27 16:50:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rb10e9367 r9df0f64 731 731 return NULL; 732 732 733 /* Add one reference that will be dropped by ddf_fun_destroy() */734 733 fun->dev = dev; 735 fun_add_ref(fun);734 dev_add_ref(fun->dev); 736 735 737 736 fun->bound = false; … … 741 740 fun->name = str_dup(name); 742 741 if (fun->name == NULL) { 743 delete_function(fun);742 fun_del_ref(fun); /* fun is destroyed */ 744 743 return NULL; 745 744 }
Note:
See TracChangeset
for help on using the changeset viewer.