Subversion Repositories HelenOS

Rev

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

Rev 4407 Rev 4422
Line 353... Line 353...
353
    switch (IPC_GET_METHOD(call->data)) {
353
    switch (IPC_GET_METHOD(call->data)) {
354
    case IPC_M_CONNECTION_CLONE: {
354
    case IPC_M_CONNECTION_CLONE: {
355
        phone_t *cloned_phone;
355
        phone_t *cloned_phone;
356
        GET_CHECK_PHONE(cloned_phone, IPC_GET_ARG1(call->data),
356
        GET_CHECK_PHONE(cloned_phone, IPC_GET_ARG1(call->data),
357
            return ENOENT);
357
            return ENOENT);
-
 
358
        if (phone  == cloned_phone)
-
 
359
            return EEXISTS;
358
        if (cloned_phone < phone) {
360
        if (cloned_phone < phone) {
359
            mutex_lock(&cloned_phone->lock);
361
            mutex_lock(&cloned_phone->lock);
360
            mutex_lock(&phone->lock);
362
            mutex_lock(&phone->lock);
361
        } else {
363
        } else {
362
            mutex_lock(&phone->lock);
364
            mutex_lock(&phone->lock);