Subversion Repositories HelenOS

Rev

Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4327
Line 330... Line 330...
330
        break;
330
        break;
331
    case IPC_M_DATA_WRITE:
331
    case IPC_M_DATA_WRITE:
332
        src = IPC_GET_ARG1(call->data);
332
        src = IPC_GET_ARG1(call->data);
333
        size = IPC_GET_ARG2(call->data);
333
        size = IPC_GET_ARG2(call->data);
334
       
334
       
335
        if ((size <= 0) || (size > DATA_XFER_LIMIT))
335
        if (size > DATA_XFER_LIMIT)
336
            return ELIMIT;
336
            return ELIMIT;
337
       
337
       
338
        call->buffer = (uint8_t *) malloc(size, 0);
338
        call->buffer = (uint8_t *) malloc(size, 0);
339
        rc = copy_from_uspace(call->buffer, (void *) src, size);
339
        rc = copy_from_uspace(call->buffer, (void *) src, size);
340
        if (rc != 0) {
340
        if (rc != 0) {