Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r9df0f64 rbeb83c1  
    145145        }
    146146
     147        /* Add one reference that will be dropped by driver_dev_remove() */
     148        dev_add_ref(dev);
    147149        dev->handle = dev_handle;
    148150        dev->name = dev_name;
     
    731733                return NULL;
    732734
     735        /* Add one reference that will be dropped by ddf_fun_destroy() */
    733736        fun->dev = dev;
    734         dev_add_ref(fun->dev);
     737        fun_add_ref(fun);
    735738
    736739        fun->bound = false;
     
    740743                fun->name = str_dup(name);
    741744                if (fun->name == NULL) {
    742                         fun_del_ref(fun);       /* fun is destroyed */
     745                        delete_function(fun);
    743746                        return NULL;
    744747                }
Note: See TracChangeset for help on using the changeset viewer.