Changeset 702729e in mainline for uspace/lib/drv/generic/driver.c
- Timestamp:
- 2018-01-29T01:32:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18092dd3
- Parents:
- 203b80c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
r203b80c r702729e 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); 203 } 200 204 201 205 dev_del_ref(dev); … … 225 229 rc = ENOTSUP; 226 230 227 if (rc == EOK) 231 if (rc == EOK) { 232 fibril_mutex_lock(&devices_mutex); 233 list_remove(&dev->link); 234 fibril_mutex_unlock(&devices_mutex); 228 235 dev_del_ref(dev); 236 } 229 237 230 238 dev_del_ref(dev);
Note:
See TracChangeset
for help on using the changeset viewer.