Changeset 5071f8a in mainline


Ignore:
Timestamp:
2018-11-09T22:29:57Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c88d91e8
Parents:
be6e37a
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-06 19:24:38)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-09 22:29:57)
Message:

Handle correctly THREAD being NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rbe6e37a r5071f8a  
    14651465
    14661466page_fault:
    1467         if (THREAD->in_copy_from_uspace) {
     1467        if (THREAD && THREAD->in_copy_from_uspace) {
    14681468                THREAD->in_copy_from_uspace = false;
    14691469                istate_set_retaddr(istate,
    14701470                    (uintptr_t) &memcpy_from_uspace_failover_address);
    1471         } else if (THREAD->in_copy_to_uspace) {
     1471        } else if (THREAD && THREAD->in_copy_to_uspace) {
    14721472                THREAD->in_copy_to_uspace = false;
    14731473                istate_set_retaddr(istate,
Note: See TracChangeset for help on using the changeset viewer.