Changeset 5d3ed34 in mainline for kernel/generic/src/ipc/kbox.c


Ignore:
Timestamp:
2012-09-03T21:39:37Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c9bbaf
Parents:
9ef1b79b
Message:

Make sure that both dispatched and non-dispatched calls are properly
answered in ipc_cleanup_call_list().

  • Define simple request_preprocess() hook for IPC_M_CONNECT_TO_ME to detect when the request_process() was not called and no resources allocated so that answer_cleanup() does not attempt to free non-existent resources.
File:
1 edited

Legend:

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

    r9ef1b79b r5d3ed34  
    8888       
    8989        /* Answer all messages in 'calls' and 'dispatched_calls' queues. */
    90         irq_spinlock_lock(&TASK->kb.box.lock, true);
    91         ipc_cleanup_call_list(&TASK->kb.box.dispatched_calls);
    92         ipc_cleanup_call_list(&TASK->kb.box.calls);
    93         irq_spinlock_unlock(&TASK->kb.box.lock, true);
     90        ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.dispatched_calls);
     91        ipc_cleanup_call_list(&TASK->kb.box, &TASK->kb.box.calls);
    9492}
    9593
Note: See TracChangeset for help on using the changeset viewer.