Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c222816 in mainline


Ignore:
Timestamp:
2018-11-09T22:03:24Z (3 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
90efa3b
Parents:
b9a2725
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 21:14:57)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:03:24)
Message:

Add FRAME_ATOMIC to some allocations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/sysipc.c

    rb9a2725 rc222816  
    267267 * @return EOK on success.
    268268 * @return ENOENT if there is no such phone handle.
     269 * @return ENOMEM if not enough memory to make the call
    269270 *
    270271 */
     
    276277                return ENOENT;
    277278
    278         call_t *call = ipc_call_alloc(0);
     279        call_t *call = ipc_call_alloc(FRAME_ATOMIC);
     280        if (!call) {
     281                kobject_put(kobj);
     282                return ENOMEM;
     283        }
     284
    279285        call->priv = priv;
    280286        memcpy(call->data.args, data->args, sizeof(data->args));
     
    373379        }
    374380
    375         call_t *call = ipc_call_alloc(0);
     381        call_t *call = ipc_call_alloc(FRAME_ATOMIC);
     382        if (!call) {
     383                kobject_put(kobj);
     384                return ENOMEM;
     385        }
     386
    376387        IPC_SET_IMETHOD(call->data, imethod);
    377388        IPC_SET_ARG1(call->data, arg1);
     
    420431        }
    421432
    422         call_t *call = ipc_call_alloc(0);
     433        call_t *call = ipc_call_alloc(FRAME_ATOMIC);
     434        if (!call) {
     435                kobject_put(kobj);
     436                return ENOMEM;
     437        }
     438
    423439        errno_t rc = copy_from_uspace(&call->data.args, &data->args,
    424440            sizeof(call->data.args));
Note: See TracChangeset for help on using the changeset viewer.