Changes in / [03cfe2ec:07457d6] in mainline


Ignore:
File:
1 edited

Legend:

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

    r03cfe2ec r07457d6  
    196196                rc = ENOTSUP;
    197197       
    198         if (rc == EOK)
     198        if (rc == EOK) {
     199                fibril_mutex_lock(&devices_mutex);
     200                list_remove(&dev->link);
     201                fibril_mutex_unlock(&devices_mutex);
    199202                dev_del_ref(dev);
    200        
     203        }
     204       
     205        dev_del_ref(dev);
    201206        async_answer_0(iid, rc);
    202207}
     
    224229                rc = ENOTSUP;
    225230       
    226         if (rc == EOK)
     231        if (rc == EOK) {
     232                fibril_mutex_lock(&devices_mutex);
     233                list_remove(&dev->link);
     234                fibril_mutex_unlock(&devices_mutex);
    227235                dev_del_ref(dev);
    228        
     236        }
     237       
     238        dev_del_ref(dev);
    229239        async_answer_0(iid, rc);
    230240}
Note: See TracChangeset for help on using the changeset viewer.