Changeset bc50fc42 in mainline


Ignore:
Timestamp:
2007-11-19T16:45:38Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3209923
Parents:
0c09f2b
Message:

STRUCT_TO_USPACE may fail in sys_ipc_call_sync_fast.

File:
1 edited

Legend:

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

    r0c09f2b rbc50fc42  
    369369        phone_t *phone;
    370370        int res;
     371        int rc;
    371372
    372373        GET_CHECK_PHONE(phone, phoneid, return ENOENT);
     
    384385                IPC_SET_RETVAL(call.data, res);
    385386        }
    386         STRUCT_TO_USPACE(&data->args, &call.data.args);
     387        rc = STRUCT_TO_USPACE(&data->args, &call.data.args);
     388        if (rc != 0)
     389                return rc;
    387390
    388391        return 0;
Note: See TracChangeset for help on using the changeset viewer.