Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2895 → Rev 2896

/branches/tracing/kernel/generic/src/udebug/udebug_ipc.c
59,7 → 59,8
to_copy = IPC_GET_ARG4(call->data);
if (to_copy > sizeof(istate_t)) to_copy = sizeof(istate_t);
 
buffer = malloc(to_copy, 0); // ???
buffer = malloc(to_copy, 0);
if (!buffer) return ENOMEM;
 
rc = copy_from_uspace(buffer, uspace_data, to_copy);
if (rc != 0) {
85,7 → 86,8
uspace_data = (void *)IPC_GET_ARG2(call->data);
to_copy = IPC_GET_ARG4(call->data);
 
buffer = malloc(to_copy, 0); // ???
buffer = malloc(to_copy, 0);
if (!buffer) return ENOMEM;
 
rc = copy_from_uspace(buffer, uspace_data, to_copy);
if (rc != 0) {