Changeset 4e5aa02 in mainline


Ignore:
Timestamp:
2008-09-18T20:33:06Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
073c9e6
Parents:
47e0a05b
Message:

Fix task active call accounting for IPC_M_HUNGUP calls.

Location:
kernel/generic/src/ipc
Files:
2 edited

Legend:

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

    r47e0a05b r4e5aa02  
    574574                ASSERT(!(call->flags & IPC_CALL_STATIC_ALLOC));
    575575               
    576                 atomic_dec(&TASK->active_calls);
     576                if (!(call->flags & IPC_CALL_DISCARD_ANSWER))
     577                        atomic_dec(&TASK->active_calls);
    577578                ipc_call_free(call);
    578579        }
  • kernel/generic/src/ipc/sysipc.c

    r47e0a05b r4e5aa02  
    823823                ASSERT(! (call->flags & IPC_CALL_STATIC_ALLOC));
    824824
    825                 atomic_dec(&TASK->active_calls);
     825                if (!(call->flags & IPC_CALL_DISCARD_ANSWER))
     826                        atomic_dec(&TASK->active_calls);
    826827
    827828                if (call->flags & IPC_CALL_DISCARD_ANSWER) {
Note: See TracChangeset for help on using the changeset viewer.