Changeset cdd6fc9 in mainline for uspace/lib/ipcgfx/src/server.c


Ignore:
Timestamp:
2023-01-03T20:38:44Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c54869
Parents:
df54aa8
Message:

Add missing replies in IPC error paths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ipcgfx/src/server.c

    rdf54aa8 rcdd6fc9  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    151151
    152152        if (!async_share_out_receive(&call, &size, &flags)) {
     153                async_answer_0(&call, EINVAL);
    153154                async_answer_0(icall, EINVAL);
    154155                return;
     
    157158        /* Check size */
    158159        if (size != PAGES2SIZE(SIZE2PAGES(dim.x * dim.y * sizeof(uint32_t)))) {
     160                async_answer_0(&call, EINVAL);
    159161                async_answer_0(icall, EINVAL);
    160162                return;
     
    163165        rc = async_share_out_finalize(&call, &pixels);
    164166        if (rc != EOK || pixels == AS_MAP_FAILED) {
     167                async_answer_0(&call, ENOMEM);
    165168                async_answer_0(icall, ENOMEM);
    166169                return;
Note: See TracChangeset for help on using the changeset viewer.