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

Changeset 7d158097 in mainline


Ignore:
Timestamp:
2009-05-21T17:15:56Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial
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.