Changeset cdd6fc9 in mainline for uspace/lib/ipcgfx/src/server.c
- Timestamp:
- 2023-01-03T20:38:44Z (15 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c54869
- Parents:
- df54aa8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ipcgfx/src/server.c
rdf54aa8 rcdd6fc9 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 151 151 152 152 if (!async_share_out_receive(&call, &size, &flags)) { 153 async_answer_0(&call, EINVAL); 153 154 async_answer_0(icall, EINVAL); 154 155 return; … … 157 158 /* Check size */ 158 159 if (size != PAGES2SIZE(SIZE2PAGES(dim.x * dim.y * sizeof(uint32_t)))) { 160 async_answer_0(&call, EINVAL); 159 161 async_answer_0(icall, EINVAL); 160 162 return; … … 163 165 rc = async_share_out_finalize(&call, &pixels); 164 166 if (rc != EOK || pixels == AS_MAP_FAILED) { 167 async_answer_0(&call, ENOMEM); 165 168 async_answer_0(icall, ENOMEM); 166 169 return;
Note:
See TracChangeset
for help on using the changeset viewer.