Changeset 645d9ed in mainline for kernel/generic/src/ipc/ipcrsc.c


Ignore:
Timestamp:
2008-08-24T18:19:21Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
74965d2
Parents:
088ab05
Message:

Fix processing of answers to forwarded masqueraded calls.

File:
1 edited

Legend:

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

    r088ab05 r645d9ed  
    171171
    172172        spinlock_lock(&TASK->lock);
    173        
    174173        for (i = 0; i < IPC_MAX_PHONES; i++) {
    175174                if (TASK->phones[i].state == IPC_PHONE_HUNGUP &&
     
    184183        spinlock_unlock(&TASK->lock);
    185184
    186         if (i >= IPC_MAX_PHONES)
     185        if (i == IPC_MAX_PHONES)
    187186                return -1;
     187
    188188        return i;
    189189}
Note: See TracChangeset for help on using the changeset viewer.