Changeset 5d9430d7 in mainline


Ignore:
Timestamp:
2008-12-07T13:39:54Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8af9950
Parents:
20eb5e4d
Message:

Fix panic caused by NULL pointer dereference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/time/clock.c

    r20eb5e4d r5d9430d7  
    190190               
    191191                if (!ticks && !PREEMPTION_DISABLED) {
     192#ifdef CONFIG_UDEBUG
     193                        istate_t *istate;
     194#endif
    192195                        scheduler();
    193196#ifdef CONFIG_UDEBUG
    194197                        /*
    195198                         * Give udebug chance to stop the thread
    196                          * before it begins executing.
     199                         * before it begins executing userspace code.
    197200                         */
    198                         if (istate_from_uspace(THREAD->udebug.uspace_state))
     201                        istate = THREAD->udebug.uspace_state;
     202                        if (istate && istate_from_uspace(istate))
    199203                                udebug_before_thread_runs();
    200204#endif
Note: See TracChangeset for help on using the changeset viewer.