Changeset 8630748 in mainline
- Timestamp:
- 2020-06-24T22:43:00Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 78445be8
- Parents:
- 62018a0
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/fb/kfb/port.c
r62018a0 r8630748 377 377 assert(gc_id == 42); 378 378 379 if (kfb->addr != AS_AREA_ANY) { 380 /* This means there already is a GC connection */ 381 async_answer_0(icall, EBUSY); 382 return; 383 } 384 379 385 rc = physmem_map(kfb->paddr + kfb->offset, 380 386 ALIGN_UP(kfb->size, PAGE_SIZE) >> PAGE_WIDTH, … … 392 398 rc = physmem_unmap(kfb->addr); 393 399 if (rc == EOK) 394 kfb->addr = NULL;400 kfb->addr = AS_AREA_ANY; 395 401 } 396 402 397 403 return; 398 404 error: 399 if (kfb->addr != NULL) {405 if (kfb->addr != AS_AREA_ANY) { 400 406 if (physmem_unmap(kfb->addr) == EOK) 401 kfb->addr = NULL;407 kfb->addr = AS_AREA_ANY; 402 408 } 403 409 -
uspace/srv/hid/display/main.c
r62018a0 r8630748 121 121 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server: %s.", str_error(rc)); 122 122 rc = EEXIST; 123 goto error; 123 124 } 124 125 -
uspace/srv/hid/display/output.c
r62018a0 r8630748 163 163 fibril_mutex_unlock(&output->lock); 164 164 165 /* Fail if we did not open at least one device */ 166 if (list_empty(&output->ddevs)) { 167 log_msg(LOG_DEFAULT, LVL_ERROR, "No output device found."); 168 return ENOENT; 169 } 170 165 171 return rc; 166 172 }
Note:
See TracChangeset
for help on using the changeset viewer.