Changes in uspace/lib/drv/generic/driver.c [cde999a:702729e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rcde999a 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); 200 201 async_answer_0(iid, rc); 203 } 204 205 dev_del_ref(dev); 206 async_answer_0(iid, (sysarg_t) rc); 202 207 } 203 208 … … 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 229 async_answer_0(iid, rc); 236 } 237 238 dev_del_ref(dev); 239 async_answer_0(iid, (sysarg_t) rc); 230 240 } 231 241 … … 262 272 fun_del_ref(fun); 263 273 264 async_answer_0(iid, rc);274 async_answer_0(iid, (sysarg_t) rc); 265 275 } 266 276 … … 295 305 rc = ENOTSUP; 296 306 297 async_answer_0(iid, rc);307 async_answer_0(iid, (sysarg_t) rc); 298 308 } 299 309 … … 812 822 * @param fun Function to bind 813 823 * 814 * @return EOK on success or anerror code824 * @return EOK on success or negative error code 815 825 * 816 826 */ … … 840 850 * @param fun Function to unbind 841 851 * 842 * @return EOK on success or anerror code852 * @return EOK on success or negative error code 843 853 * 844 854 */ … … 861 871 * @param fun Function to online 862 872 * 863 * @return EOK on success or anerror code873 * @return EOK on success or negative error code 864 874 * 865 875 */ … … 879 889 * @param fun Function to offline 880 890 * 881 * @return EOK on success or anerror code891 * @return EOK on success or negative error code 882 892 * 883 893 */
Note:
See TracChangeset
for help on using the changeset viewer.