Changes in uspace/lib/drv/generic/driver.c [b8ab299:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rb8ab299 rb7fd2a0 196 196 rc = ENOTSUP; 197 197 198 if (rc == EOK) { 199 fibril_mutex_lock(&devices_mutex); 200 list_remove(&dev->link); 201 fibril_mutex_unlock(&devices_mutex); 198 if (rc == EOK) 202 199 dev_del_ref(dev); 203 } 204 205 dev_del_ref(dev); 200 206 201 async_answer_0(iid, rc); 207 202 } … … 229 224 rc = ENOTSUP; 230 225 231 if (rc == EOK) { 232 fibril_mutex_lock(&devices_mutex); 233 list_remove(&dev->link); 234 fibril_mutex_unlock(&devices_mutex); 226 if (rc == EOK) 235 227 dev_del_ref(dev); 236 } 237 238 dev_del_ref(dev); 228 239 229 async_answer_0(iid, rc); 240 230 }
Note:
See TracChangeset
for help on using the changeset viewer.