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