Changes in uspace/lib/drv/generic/driver.c [9df0f64:beb83c1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r9df0f64 rbeb83c1 145 145 } 146 146 147 /* Add one reference that will be dropped by driver_dev_remove() */ 148 dev_add_ref(dev); 147 149 dev->handle = dev_handle; 148 150 dev->name = dev_name; … … 731 733 return NULL; 732 734 735 /* Add one reference that will be dropped by ddf_fun_destroy() */ 733 736 fun->dev = dev; 734 dev_add_ref(fun->dev);737 fun_add_ref(fun); 735 738 736 739 fun->bound = false; … … 740 743 fun->name = str_dup(name); 741 744 if (fun->name == NULL) { 742 fun_del_ref(fun); /* fun is destroyed */745 delete_function(fun); 743 746 return NULL; 744 747 }
Note:
See TracChangeset
for help on using the changeset viewer.