Changeset 3612e9f in mainline
- Timestamp:
- 2018-11-22T20:05:37Z (6 years ago)
- Parents:
- ca21f1e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rca21f1e2 r3612e9f 733 733 return NULL; 734 734 735 /* Add one reference that will be dropped by ddf_fun_destroy() */736 735 fun->dev = dev; 737 fun_add_ref(fun);736 dev_add_ref(fun->dev); 738 737 739 738 fun->bound = false; … … 743 742 fun->name = str_dup(name); 744 743 if (fun->name == NULL) { 745 delete_function(fun);744 fun_del_ref(fun); /* fun is destroyed */ 746 745 return NULL; 747 746 }
Note:
See TracChangeset
for help on using the changeset viewer.