Changeset c6f0e3a2 in mainline


Ignore:
Timestamp:
2010-05-10T19:14:45Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
52c60b6
Parents:
e2fcdb1
Message:

Fix lock ordering in kbox_proc_hone_hungup().

File:
1 edited

Legend:

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

    re2fcdb1 rc6f0e3a2  
    126126        ipc_answer(&TASK->kb.box, call);
    127127
     128        mutex_lock(&TASK->kb.cleanup_lock);
     129
    128130        ipl = interrupts_disable();
    129131        spinlock_lock(&TASK->lock);
     
    136138
    137139                /* Only detach kbox thread unless already terminating. */
    138                 mutex_lock(&TASK->kb.cleanup_lock);
    139140                if (TASK->kb.finished == false) {
    140141                        /* Detach kbox thread so it gets freed from memory. */
     
    142143                        TASK->kb.thread = NULL;
    143144                }
    144                 mutex_unlock(&TASK->kb.cleanup_lock);
    145145
    146146                LOG("Phone list is empty.");
     
    153153        spinlock_unlock(&TASK->lock);
    154154        interrupts_restore(ipl);
     155
     156        mutex_unlock(&TASK->kb.cleanup_lock);
    155157}
    156158
Note: See TracChangeset for help on using the changeset viewer.