Changes in / [03cfe2ec:07457d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r03cfe2ec r07457d6 196 196 rc = ENOTSUP; 197 197 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); 199 202 dev_del_ref(dev); 200 203 } 204 205 dev_del_ref(dev); 201 206 async_answer_0(iid, rc); 202 207 } … … 224 229 rc = ENOTSUP; 225 230 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); 227 235 dev_del_ref(dev); 228 236 } 237 238 dev_del_ref(dev); 229 239 async_answer_0(iid, rc); 230 240 }
Note:
See TracChangeset
for help on using the changeset viewer.