Changeset 7d158097 in mainline


Ignore:
Timestamp:
2009-05-21T17:15:56Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0442c02
Parents:
1601f3c
Message:

Refuse to clone the phone which is itself used to make the IPC_M_CONNECTION_CLONE call.

File:
1 edited

Legend:

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

    r1601f3c r7d158097  
    356356                GET_CHECK_PHONE(cloned_phone, IPC_GET_ARG1(call->data),
    357357                    return ENOENT);
     358                if (phone  == cloned_phone)
     359                        return EEXISTS;
    358360                if (cloned_phone < phone) {
    359361                        mutex_lock(&cloned_phone->lock);
Note: See TracChangeset for help on using the changeset viewer.